Documentation
¶
Index ¶
- Constants
- func EmptyBoxSpace(bgColor tcell.Color) *tview.Box
- type Item
- type Menu
- func (m *Menu) AddItem(item *Item)
- func (m *Menu) Draw(screen tcell.Screen)
- func (m *Menu) Focus(delegate func(p tview.Primitive))
- func (m *Menu) GetItems() []*Item
- func (m *Menu) HasFocus() bool
- func (m *Menu) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
- func (m *Menu) SetItems(items []*Item)
- type SortItems
- type SubMenu
- func (m *SubMenu) AddItem(item *Item)
- func (m *SubMenu) Draw(screen tcell.Screen)
- func (m *SubMenu) Focus(delegate func(p tview.Primitive))
- func (m *SubMenu) HasFocus() bool
- func (m *SubMenu) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
- func (m *SubMenu) SetCancelFunc(handler func()) *SubMenu
- func (m *SubMenu) SetItems(items []*Item)
- func (m *SubMenu) SetRect(x, y, width, height int)
Constants ¶
View Source
const ( // DialogPadding dialog inner paddign. DialogPadding = 3 // DialogFormHeight dialog "Enter"/"Cancel" form height. DialogHelpHeight = 1 // DialogMinWidth dialog min width. DialogMinWidth = 40 // TableHeightOffset table height offset for border. TableHeightOffset = 3 )
Variables ¶
This section is empty.
Functions ¶
func EmptyBoxSpace ¶
Types ¶
type Menu ¶
func (*Menu) InputHandler ¶
type SubMenu ¶
func NewSubMenu ¶
func (*SubMenu) InputHandler ¶
func (*SubMenu) SetCancelFunc ¶
Click to show internal directories.
Click to hide internal directories.