Documentation
¶
Index ¶
- type Breadcrumb
- type Confirm
- type ConfirmResult
- type Flash
- type KeyHint
- type StatusBar
- type Table
- func (t *Table) ClearSelection()
- func (t *Table) RowCount() int
- func (t *Table) SelectedCount() int
- func (t *Table) SelectedIndex() int
- func (t *Table) SelectedIndices() []int
- func (t *Table) SelectedRow() []string
- func (t *Table) SetFilter(f string)
- func (t *Table) SetRows(rows [][]string)
- func (t *Table) SetSize(w, h int)
- func (t *Table) ToggleSelect()
- func (t *Table) Update(msg tea.KeyMsg)
- func (t *Table) View() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Breadcrumb ¶
type Breadcrumb struct {
// contains filtered or unexported fields
}
Breadcrumb renders a navigation path.
func (*Breadcrumb) SetItems ¶
func (b *Breadcrumb) SetItems(items []string)
SetItems sets the breadcrumb path items.
func (*Breadcrumb) SetSize ¶
func (b *Breadcrumb) SetSize(w int)
SetSize updates the breadcrumb width.
type Confirm ¶
type Confirm struct {
// contains filtered or unexported fields
}
Confirm is a confirmation dialog component.
type ConfirmResult ¶
ConfirmResult is sent when the user answers the confirmation.
type Flash ¶
type Flash struct {
// contains filtered or unexported fields
}
Flash displays temporary messages.
type StatusBar ¶
type StatusBar struct {
// contains filtered or unexported fields
}
StatusBar renders key hints at the bottom of the screen.
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
Table is a custom table component with selection, sorting and filtering.
func (*Table) ClearSelection ¶
func (t *Table) ClearSelection()
ClearSelection clears all multi-selections.
func (*Table) SelectedCount ¶
SelectedCount returns the number of selected rows.
func (*Table) SelectedIndex ¶
SelectedIndex returns the original row index of the currently selected row.
func (*Table) SelectedIndices ¶
SelectedIndices returns all multi-selected row indices. If nothing is selected, returns nil.
func (*Table) SelectedRow ¶
SelectedRow returns the currently selected row data.
func (*Table) ToggleSelect ¶
func (t *Table) ToggleSelect()
ToggleSelect toggles the selection of the current row.