Documentation
¶
Index ¶
- type DelegateFunctions
- type Item
- type Model
- func (m Model) Init() tea.Cmd
- func (m *Model) Items() []Item
- func (m *Model) RemoveItemById(id string) tea.Cmd
- func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m Model) View() string
- func (m *Model) WithAddFn(addFn func(string) tea.Cmd) *Model
- func (m *Model) WithChooseFn(chooseFn func(string) tea.Cmd) *Model
- func (m *Model) WithEditFn(editFn func(string) tea.Cmd) *Model
- func (m *Model) WithRemoveFn(removeFn func(string) tea.Cmd) *Model
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DelegateFunctions ¶
type Model ¶
type Model struct { List list.Model Keys *listKeyMap DelegateKeys *delegateKeyMap DelegateFn *DelegateFunctions }
func NewFancyListModel ¶
func NewFancyListModel(title string, items []Item, delegateFn *DelegateFunctions) *Model
Click to show internal directories.
Click to hide internal directories.