Documentation ¶ Index ¶ type Menu func NewMenu(w int, h int) *Menu func (m *Menu) Init() tea.Cmd func (m *Menu) Update(msg tea.Msg) (tea.Model, tea.Cmd) func (m *Menu) View() string type MenuList func NewMenuList(w int, h int, opts map[enums.Page]string) *MenuList func (m *MenuList) GetText() string func (m *MenuList) Init() tea.Cmd func (m *MenuList) Update(msg tea.Msg) (tea.Model, tea.Cmd) func (m *MenuList) View() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Menu ¶ type Menu struct { Width int Height int Options map[enums.Page]string List *MenuList } func NewMenu ¶ func NewMenu(w int, h int) *Menu func (*Menu) Init ¶ func (m *Menu) Init() tea.Cmd func (*Menu) Update ¶ func (m *Menu) Update(msg tea.Msg) (tea.Model, tea.Cmd) func (*Menu) View ¶ func (m *Menu) View() string type MenuList ¶ type MenuList struct { Width int Height int Options map[enums.Page]string Selections []enums.Page Selected int } func NewMenuList ¶ func NewMenuList(w int, h int, opts map[enums.Page]string) *MenuList func (*MenuList) GetText ¶ func (m *MenuList) GetText() string func (*MenuList) Init ¶ func (m *MenuList) Init() tea.Cmd func (*MenuList) Update ¶ func (m *MenuList) Update(msg tea.Msg) (tea.Model, tea.Cmd) func (*MenuList) View ¶ func (m *MenuList) View() string Source Files ¶ View all Source files menu.gomenulist.go Click to show internal directories. Click to hide internal directories.