ratatui/examples/demo2
Tayfun Bocek dc8d0587ec
feat(table)!: add support for selecting column and cell (#1331)
Fixes https://github.com/ratatui-org/ratatui/issues/1250

Adds support for selecting a column and cell in `TableState`. The
selected column, and cells style can be set by
`Table::column_highlight_style` and `Table::cell_highlight_style`
respectively.

The table example has also been updated to display the new
functionality:


https://github.com/user-attachments/assets/e5fd2858-4931-4ce1-a2f6-a5ea1eacbecc

BREAKING CHANGE: The Serialized output of the state will now include the
"selected_column" field. Software that manually parse the serialized the
output (with anything other than the `Serialize` implementation on
`TableState`) may have to be refactored if the "selected_column" field
is not accounted for. This does not affect users who rely on the
`Deserialize`, or `Serialize` implementation on the state.

BREAKING CHANGE: The `Table::highlight_style` is now deprecated in favor
of `Table::row_highlight_style`.

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-10-13 14:06:29 +03:00
..
tabs feat(table)!: add support for selecting column and cell (#1331) 2024-10-13 14:06:29 +03:00
app.rs feat(terminal): Add ratatui::init() and restore() methods (#1289) 2024-08-22 15:16:35 +03:00
colors.rs feat(buffer): add Buffer::cell, cell_mut and index implementations (#1084) 2024-08-06 00:40:47 -07:00
destroy.rs feat(buffer): add Buffer::cell, cell_mut and index implementations (#1084) 2024-08-06 00:40:47 -07:00
main.rs feat(terminal): Add ratatui::init() and restore() methods (#1289) 2024-08-22 15:16:35 +03:00
tabs.rs feat(examples): add demo2 example (#500) 2023-09-21 01:47:23 -07:00
theme.rs refactor: expand glob imports (#1152) 2024-05-29 04:42:29 -07:00