Documentation
¶
Index ¶
- func DefaultKeyMap() keys.KeyMap
- func Filter(search string, choices item.Choices) []item.Item
- type App
- func (m *App) AfterUpdate() tea.Cmd
- func (m App) Chosen() []map[string]string
- func (c *App) ClearSelections() tea.Cmd
- func (m App) CurrentItem() item.Choice
- func (c App) FilterValue() string
- func (c App) Height() int
- func (c *App) Init(reactea.NoProps) tea.Cmd
- func (c App) InputValue() string
- func (c App) Limit() int
- func (m *App) NewStatusMessage(s string) tea.Cmd
- func (c *App) Render(width, height int) string
- func (c *App) ResetFilter()
- func (c *App) ResetInput()
- func (m App) Selections() []int
- func (c *App) SetFilter(s string)
- func (c *App) SetFooter(h string) *App
- func (c *App) SetInput(value string)
- func (c *App) SetLimit(l int) *App
- func (c *App) SetStatus(h string) *App
- func (c *App) SetTitle(h string) *App
- func (m *App) ToggleItems(items ...int)
- func (c *App) Update(msg tea.Msg) tea.Cmd
- func (c App) Width() int
- type Option
- type Style
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultKeyMap ¶
Types ¶
type App ¶
type App struct { reactea.BasicComponent reactea.BasicPropfulComponent[reactea.NoProps] Style // How long status messages should stay visible. By default this is // 1 second. StatusMessageLifetime time.Duration Choices item.Choices // contains filtered or unexported fields }
func (*App) AfterUpdate ¶
func (*App) ClearSelections ¶
func (App) CurrentItem ¶
func (App) FilterValue ¶
func (App) InputValue ¶
func (*App) NewStatusMessage ¶
NewStatusMessage sets a new status message, which will show for a limited amount of time. Note that this also returns a command.
func (*App) ResetFilter ¶
func (c *App) ResetFilter()
func (*App) ResetInput ¶
func (c *App) ResetInput()
func (App) Selections ¶
func (*App) ToggleItems ¶
type Option ¶
type Option func(*App)
func ConfirmChoices ¶
func ConfirmChoices() Option
func WithFilter ¶
func WithFilter() Option
Click to show internal directories.
Click to hide internal directories.