Documentation
¶
Index ¶
- type Item
- type Items
- type Menu
- func (m *Menu) AddItems(items ...Item)
- func (m *Menu) Buffer() ui.Buffer
- func (m *Menu) ClearItems()
- func (m *Menu) DelItem(s string) (success bool)
- func (m *Menu) Down()
- func (m *Menu) SelectedItem() Item
- func (m *Menu) SelectedValue() string
- func (m *Menu) SetCursor(s string) (success bool)
- func (m *Menu) SetToolTip(lines ...string)
- func (m *Menu) Up()
- type Padding
- type ToolTip
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Menu ¶
type Menu struct { ui.Block SortItems bool // enable automatic sorting of menu items Selectable bool // whether menu is navigable SubText string // optional text to display before items TextFgColor ui.Attribute TextBgColor ui.Attribute // contains filtered or unexported fields }
func (*Menu) ClearItems ¶ added in v0.7.4
func (m *Menu) ClearItems()
ClearItems removes all current menu items
func (*Menu) SelectedItem ¶
func (*Menu) SelectedValue ¶ added in v0.7.4
func (*Menu) SetToolTip ¶ added in v0.7.4
SetToolTip sets an optional tooltip string to show at bottom of screen
type ToolTip ¶ added in v0.7.4
type ToolTip struct { ui.Block Lines []string TextFgColor ui.Attribute TextBgColor ui.Attribute // contains filtered or unexported fields }
func NewToolTip ¶ added in v0.7.4
Click to show internal directories.
Click to hide internal directories.