Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListComponent ¶
func NewListComponent ¶
func NewListComponent(config *ListComponentConfig) *ListComponent
func (*ListComponent) Init ¶
func (c *ListComponent) Init() tea.Cmd
func (*ListComponent) View ¶
func (c *ListComponent) View() string
type ListComponentConfig ¶
type ListComponentConfig struct {
Items []*ListItem
DefaultSearchFilter string
OnSelect OnSelectFunc
}
type OnSelectFunc ¶
type OnSelectFunc func(*ListItem)
Click to show internal directories.
Click to hide internal directories.