Documentation
¶
Index ¶
- func NewTable[T any](titles []string, rowRenderer RowRenderer[T], opts ...tableComponentOption[T]) *tableComponent[T]
- func WithColumnWidths[T any](widths []int) tableComponentOption[T]
- func WithHeight[T any](h int) tableComponentOption[T]
- func WithKeepOpenOnSelect[T any](keepOpen bool) tableComponentOption[T]
- func WithKeyActions[T any](actions []KeyAction[T]) tableComponentOption[T]
- func WithSelectDescription[T any](desc string) tableComponentOption[T]
- func WithSelectFunc[T any](fn func(T)) tableComponentOption[T]
- func WithStyles[T any](s table.Styles) tableComponentOption[T]
- func WithTitle[T any](title string) tableComponentOption[T]
- type KeyAction
- type RowRenderer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTable ¶
func NewTable[T any](titles []string, rowRenderer RowRenderer[T], opts ...tableComponentOption[T]) *tableComponent[T]
func WithColumnWidths ¶
func WithHeight ¶
func WithKeepOpenOnSelect ¶
func WithKeyActions ¶
func WithSelectDescription ¶
func WithSelectFunc ¶
func WithSelectFunc[T any](fn func(T)) tableComponentOption[T]
func WithStyles ¶
Types ¶
type RowRenderer ¶
Click to show internal directories.
Click to hide internal directories.