Documentation ¶
Index ¶
- Constants
- func GetText(message string, defaultText string) string
- type ButtonMenu
- type CheckboxMenu
- type Menu
- func (m *Menu) AddMenuItem(text string, id string) *MenuItem
- func (m *Menu) CursorDown()
- func (m *Menu) CursorUp()
- func (m *Menu) DrawMenuItems(redraw bool)
- func (m *Menu) Dump()
- func (m *Menu) DumpIndent(indent int)
- func (m *Menu) Render()
- func (m *Menu) RunInternal() (results []string, escape bool)
- func (m *Menu) ToggleSelection()
- type MenuItem
Constants ¶
View Source
const ( ButtonType = iota CheckboxType )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ButtonMenu ¶
type ButtonMenu struct {
Menu
}
func NewButtonMenu ¶
func NewButtonMenu(heading string, question string) *ButtonMenu
func (*ButtonMenu) Run ¶
func (m *ButtonMenu) Run() (string, bool)
type CheckboxMenu ¶
func NewCheckboxMenu ¶
func NewCheckboxMenu(heading string, question string, yes string, no string) *CheckboxMenu
func (*CheckboxMenu) Run ¶
func (m *CheckboxMenu) Run() ([]string, bool)
type Menu ¶
func (*Menu) CursorDown ¶
func (m *Menu) CursorDown()
func (*Menu) DrawMenuItems ¶
func (*Menu) DumpIndent ¶
func (*Menu) RunInternal ¶
func (*Menu) ToggleSelection ¶
func (m *Menu) ToggleSelection()
Click to show internal directories.
Click to hide internal directories.