Documentation ¶
Index ¶
- type Model
- func (m *Model[T]) ClearSuggestions()
- func (m *Model[T]) DisableScrollbar()
- func (m *Model[T]) EnableScrollbar()
- func (m *Model[T]) Error() error
- func (m *Model[T]) Formatters() suggestion.Formatters
- func (m *Model[T]) Init() tea.Cmd
- func (m *Model[T]) IsSuggestionSelected() bool
- func (c Model[T]) MaxSuggestionWidth() (int, int)
- func (m *Model[T]) MaxSuggestions() int
- func (m *Model[T]) NextSuggestion()
- func (m *Model[T]) PreviousSuggestion()
- func (c Model[T]) Render(paddingSize int) string
- func (m *Model[T]) ResetSuggestions() tea.Cmd
- func (m *Model[T]) ScrollPosition() int
- func (m *Model[T]) Scrollbar() string
- func (c Model[T]) ScrollbarBounds() (int, int)
- func (m *Model[T]) ScrollbarThumb() string
- func (m *Model[T]) SelectSuggestion(suggestion suggestion.Suggestion[T])
- func (m *Model[T]) SelectedIndex() int
- func (m *Model[T]) SelectedSuggestion() *suggestion.Suggestion[T]
- func (m *Model[T]) SelectionIndicator() string
- func (m *Model[T]) SetFormatters(formatters suggestion.Formatters)
- func (m *Model[T]) SetMaxSuggestions(maxSuggestions int)
- func (m *Model[T]) SetSelectionIndicator(selectionIndicator string)
- func (m *Model[T]) SetShowSuggestions(showSuggestions bool)
- func (m *Model[T]) ShouldChangeListPosition(msg tea.Msg) bool
- func (m *Model[T]) Suggestions() []suggestion.Suggestion[T]
- func (m *Model[T]) UnselectSuggestion()
- func (m *Model[T]) Update(msg tea.Msg) tea.Cmd
- func (m *Model[T]) UpdateSuggestions() tea.Cmd
- func (m *Model[T]) VisibleSuggestions() []suggestion.Suggestion[T]
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model[T any] struct { // contains filtered or unexported fields }
func (*Model[T]) ClearSuggestions ¶
func (m *Model[T]) ClearSuggestions()
func (*Model[T]) DisableScrollbar ¶
func (m *Model[T]) DisableScrollbar()
func (*Model[T]) EnableScrollbar ¶
func (m *Model[T]) EnableScrollbar()
func (*Model[T]) Formatters ¶
func (m *Model[T]) Formatters() suggestion.Formatters
func (*Model[T]) IsSuggestionSelected ¶
func (Model[T]) MaxSuggestionWidth ¶
func (*Model[T]) MaxSuggestions ¶
func (*Model[T]) NextSuggestion ¶
func (m *Model[T]) NextSuggestion()
func (*Model[T]) PreviousSuggestion ¶
func (m *Model[T]) PreviousSuggestion()
func (*Model[T]) ResetSuggestions ¶
func (*Model[T]) ScrollPosition ¶
func (Model[T]) ScrollbarBounds ¶
func (*Model[T]) ScrollbarThumb ¶
func (*Model[T]) SelectSuggestion ¶
func (m *Model[T]) SelectSuggestion(suggestion suggestion.Suggestion[T])
func (*Model[T]) SelectedIndex ¶
func (*Model[T]) SelectedSuggestion ¶
func (m *Model[T]) SelectedSuggestion() *suggestion.Suggestion[T]
func (*Model[T]) SelectionIndicator ¶
func (*Model[T]) SetFormatters ¶
func (m *Model[T]) SetFormatters(formatters suggestion.Formatters)
func (*Model[T]) SetMaxSuggestions ¶
func (*Model[T]) SetSelectionIndicator ¶
func (*Model[T]) SetShowSuggestions ¶
func (*Model[T]) ShouldChangeListPosition ¶
func (*Model[T]) Suggestions ¶
func (m *Model[T]) Suggestions() []suggestion.Suggestion[T]
func (*Model[T]) UnselectSuggestion ¶
func (m *Model[T]) UnselectSuggestion()
func (*Model[T]) UpdateSuggestions ¶
func (*Model[T]) VisibleSuggestions ¶
func (m *Model[T]) VisibleSuggestions() []suggestion.Suggestion[T]
type Option ¶
func WithFormatters ¶
func WithFormatters[T any](formatters suggestion.Formatters) Option[T]
func WithMaxSuggestions ¶
func WithSelectionIndicator ¶
Click to show internal directories.
Click to hide internal directories.