Documentation
¶
Index ¶
- Variables
- func GetMultipleSelectedFunc(model tea.Model) ([]int, error)
- func GetOneSelectedFunc(model tea.Model) (int, error)
- type FilterFunc
- type KeyMap
- type Model
- func (m *Model) Down(jump int)
- func (m *Model) End()
- func (m *Model) Home()
- func (m *Model) Init() tea.Cmd
- func (m *Model) IsMultiSelect() bool
- func (m *Model) Resize(width, height int)
- func (m *Model) Select()
- func (m *Model) SelectAll(deselect bool)
- func (m *Model) SelectCommand() tea.Msg
- func (m *Model) Selected() []int
- func (m *Model) Up(jump int)
- func (m *Model) Update(msg tea.Msg) (*Model, tea.Cmd)
- func (m *Model) View() string
- type Option
- type RooKeymap
- type RootModel
- type SelectedMsg
Constants ¶
This section is empty.
Variables ¶
View Source
var ExactFilter = FilterFunc(strings.Contains)
Functions ¶
Types ¶
type FilterFunc ¶
type KeyMap ¶
type KeyMap struct {
LineUp key.Binding
LineDown key.Binding
PageUp key.Binding
PageDown key.Binding
Home key.Binding
End key.Binding
Select key.Binding
MultiSelect key.Binding
SelectAll key.Binding
DeselectAll key.Binding
Filter key.Binding
FilterClear key.Binding
}
func DefaultKeymap ¶
func DefaultKeymap() KeyMap
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func (*Model) IsMultiSelect ¶
func (*Model) SelectCommand ¶
type Option ¶
func WithEnableFiltering ¶
func WithEnableFiltering() Option
func WithEnableMultiSelect ¶
func WithEnableMultiSelect() Option
func WithFilterFunc ¶
func WithFilterFunc(filterFunc FilterFunc) Option
func WithHeader ¶
func WithSetEnableFiltering ¶
type RooKeymap ¶
func DefaultRootKeymap ¶
func DefaultRootKeymap() RooKeymap
type SelectedMsg ¶
type SelectedMsg struct{}
Click to show internal directories.
Click to hide internal directories.