Expand description
Cleanroom Rust port of upstream Go source file: table/table.go
Upstream Target Tag / Version: v2.1.0
A simple table component for Bubble Tea applications.
Structs§
- Column
- Column defines the table structure.
- KeyMap
- KeyMap defines keybindings. It satisfies to the help.KeyMap interface, which is used to render the help menu.
- Model
- Model defines a state for the table widget.
- Styles
- Styles contains style definitions for this list component. By default,
these values are generated by
default_styles.
Functions§
- default_
key_ map - DefaultKeyMap returns a default set of keybindings.
- default_
styles - DefaultStyles returns a set of default style definitions for this table.
- new
- New creates a new model for the table widget.
- with_
columns - WithColumns sets the table columns (headers).
- with_
focused - WithFocused sets the focus state of the table.
- with_
height - WithHeight sets the height of the table.
- with_
key_ map - WithKeyMap sets the key map.
- with_
rows - WithRows sets the table rows (data).
- with_
styles - WithStyles sets the table styles.
- with_
width - WithWidth sets the width of the table.