Download vty-ui User`s Manual
Transcript
Chapter 4 Guided Tour of Built-In vty-ui Widgets vty-ui provides a broad set of widgets for controlling layout, presenting text, and interacting with the user. In this chapter we’ll cover these built-in widgets and their APIs at a high level. With this knowledge you should be able to bring them together to build rich interfaces. As always, consult the API documentation for some of the finer details. Naturally, we may not be able to provide meaningful examples expressed purely in terms of a single widget type and may need to mention other widgets; in those cases, see the relevant sections. 4.1 Borders The Borders module provides a number border widgets which can be created with the following functions: • vBorder – creates a vertical border of type Widget VBorder • hBorder – creates a horizontal border of type Widget HBorder • bordered – creates a bordered box of type Widget (Bordered a) around a widget of type Widget a 38