Documentation
¶
Index ¶
- func ForceFocusUpdate() tea.Msg
- type BottomNoMoreFocusableItems
- type Content
- type DeleteItemMsg
- type EditItemMsg
- type FocusItemMsg
- type Item
- type ItemHandler
- type KeyMap
- type Model
- func (m Model) FocusedItem() (Item, error)
- func (m Model) Init() tea.Cmd
- func (m Model) IsFirstIndexFocused() bool
- func (m Model) IsLastIndexFocused() bool
- func (m Model) KeyMap() help.KeyMap
- func (m Model) SetItems(items []Item) (Model, tea.Cmd)
- func (m Model) SetSize(width, height int) Model
- func (m Model) Title() string
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) UpdateFocus(isFocused bool) (Model, tea.Cmd)
- func (m Model) View() string
- type NoItemsMsg
- type SelectAllItemMsg
- type SelectItemMsg
- type TopNoMoreFocusableItems
- type TopNoMoreItems
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForceFocusUpdate ¶
ForceFocusUpdate will force to update and refocus the already focused item. It will call the registeredItemHandler of the list.
Types ¶
type BottomNoMoreFocusableItems ¶
type BottomNoMoreFocusableItems struct{}
type Content ¶
type Content struct {
Model
}
Content is a wrapper to use the filelist ui as container.Content.
func NewContent ¶
type DeleteItemMsg ¶
type DeleteItemMsg struct {
Item Item
}
DeleteItemMsg indicates the intent to delete an item in the list. The item has not been removed from the list yet. We can return an appropiate tea.Cmd from the itemHandler to actually remove the data and update the views.
type EditItemMsg ¶ added in v0.2.0
type EditItemMsg struct {
Item Item
}
EditItemMsg is an intent to edit an item.
type FocusItemMsg ¶
type FocusItemMsg struct {
Item Item
}
FocusItemMsg indicates the currently focued item in the list.
type KeyMap ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func (Model) FocusedItem ¶
func (Model) IsFirstIndexFocused ¶
func (Model) IsLastIndexFocused ¶
type NoItemsMsg ¶
type NoItemsMsg struct{}
type SelectAllItemMsg ¶
type SelectAllItemMsg struct {
Items []Item
}
SelectAllItemMsg produced when all items in a list were selected.
type SelectItemMsg ¶
type SelectItemMsg struct {
Item Item
}
SelectItemMsg indicates the selected item in the list. It is produced after `enter` key trigger.
type TopNoMoreFocusableItems ¶
type TopNoMoreFocusableItems struct{}
type TopNoMoreItems ¶
type TopNoMoreItems struct{}