Documentation
¶
Index ¶
- type HoverMsg
- type Item
- type ItemSource
- type Model
- func (m Model[I]) Accent(accent lg.Color) Model[I]
- func (m Model[I]) GetHeight() int
- func (m Model[I]) GetWidth() int
- func (m Model[I]) Height(height int) Model[I]
- func (_ Model[I]) Init() tea.Cmd
- func (m Model[I]) IsSearching() bool
- func (m Model[I]) Items(items []I) Model[I]
- func (m Model[I]) Search(search string) Model[I]
- func (m Model[I]) Searching(searching bool) Model[I]
- func (m Model[I]) Title(title string) Model[I]
- func (m Model[I]) Update(msg tea.Msg) (Model[I], tea.Cmd)
- func (m Model[I]) View() string
- func (m Model[I]) Width(width int) Model[I]
- type ResizeMsg
- type SelectedMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ItemSource ¶
type ItemSource[I Item] struct { // contains filtered or unexported fields }
func (ItemSource[I]) Len ¶
func (s ItemSource[I]) Len() int
func (ItemSource[I]) String ¶
func (s ItemSource[I]) String(i int) string
type Model ¶
type Model[I Item] struct { // contains filtered or unexported fields }
func (Model[I]) IsSearching ¶
type SelectedMsg ¶
type SelectedMsg[I Item] struct { Selected I }
Click to show internal directories.
Click to hide internal directories.