Documentation
¶
Overview ¶
Package table is an altered version of the original bubbles package for the table rendering https://github.com/charmbracelet/bubbles/tree/master/table.
Index ¶
- type Column
- type KeyMap
- type Model
- func (m *Model) Columns() []Column
- func (m *Model) Cursor() int
- func (m *Model) GotoBottom()
- func (m *Model) GotoTop()
- func (m *Model) Height() int
- func (m *Model) MarkSelected()
- func (m *Model) MarkedRows() []Row
- func (m *Model) MoveDown(n int)
- func (m *Model) MoveUp(n int)
- func (m *Model) ResetMarked()
- func (m *Model) Rows() []Row
- func (m *Model) SelectedRow() Row
- func (m *Model) SetColumns(c []Column)
- func (m *Model) SetCursor(n int)
- func (m *Model) SetHeight(h int)
- func (m *Model) SetRows(r []Row)
- func (m *Model) SetStyles(s Styles)
- func (m *Model) SetWidth(w int)
- func (m *Model) ToggleMarkAll()
- func (m *Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m *Model) UpdateViewport()
- func (m *Model) View() string
- func (m *Model) Width() int
- type Row
- type Styles
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyMap ¶
type KeyMap struct {
LineUp key.Binding
LineDown key.Binding
PageUp key.Binding
PageDown key.Binding
GotoTop key.Binding
GotoBottom key.Binding
MarkRow key.Binding
}
func DefaultKeyMap ¶
func DefaultKeyMap() KeyMap
DefaultKeyMap returns a default set of keybindings.
type Model ¶
func (*Model) GotoBottom ¶
func (m *Model) GotoBottom()
func (*Model) MarkSelected ¶ added in v0.4.1
func (m *Model) MarkSelected()
func (*Model) MarkedRows ¶ added in v0.4.1
func (*Model) ResetMarked ¶ added in v0.4.1
func (m *Model) ResetMarked()
func (*Model) SelectedRow ¶
func (*Model) SetColumns ¶
func (*Model) ToggleMarkAll ¶ added in v0.8.0
func (m *Model) ToggleMarkAll()
func (*Model) UpdateViewport ¶
func (m *Model) UpdateViewport()
Click to show internal directories.
Click to hide internal directories.