Documentation ¶
Index ¶
- type KeyMap
- type Model
- func (m Model) Cursor() int
- func (m Model) FullHelp() [][]key.Binding
- func (m Model) GetNodeAtCurrentCursor() (Node, bool)
- func (m *Model) NavDown()
- func (m *Model) NavUp()
- func (m Model) Nodes() []Node
- func (m *Model) NumberOfNodes() int
- func (m *Model) SetCursor(cursor int)
- func (m *Model) SetNodes(nodes []Node)
- func (m Model) ShortHelp() []key.Binding
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) View() string
- type Node
- type Styles
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyMap ¶
type KeyMap struct { Bottom key.Binding Top key.Binding SectionDown key.Binding SectionUp key.Binding Down key.Binding Up key.Binding Quit key.Binding }
KeyMap holds the key bindings for the table.
func DefaultKeyMap ¶
func DefaultKeyMap() KeyMap
DefaultKeyMap is the default key bindings for the table.
type Model ¶
func (Model) GetNodeAtCurrentCursor ¶
GetNodeAtBFSIndex returns the node at a specific index in a breadth-first search traversal.
func (*Model) NumberOfNodes ¶
Click to show internal directories.
Click to hide internal directories.