ratatui/src/widgets
hasezoey f63ac72305
feat(widgets::table): add option to always allocate the "selection" constraint (#375)
* feat(table): add option to configure selection layout changes

Before this option was available, selecting a row in the table when no row was selected
previously made the tables layout change (the same applies to unselecting) by adding the width
of the "highlight symbol" in the front of the first column, this option allows to configure this
behavior.

* refactor(table): refactor "get_columns_widths" to return (x, width)

and "render" to make use of that

* refactor(table): refactor "get_columns_widths" to take in a selection_width instead of a boolean

also refactor "render" to make use of this change

* fix(table): rename "highlight_set_selection_space" to "highlight_spacing"

* style(table): apply doc-comment suggestions from code review

Co-authored-by: Dheepak Krishnamurthy <me@kdheepak.com>

---------

Co-authored-by: Dheepak Krishnamurthy <me@kdheepak.com>
2023-08-11 14:15:46 +00:00
..
barchart chore: implement Hash common traits (#381) 2023-08-11 02:16:48 +00:00
canvas chore: implement Hash common traits (#381) 2023-08-11 02:16:48 +00:00
block.rs chore: implement Hash common traits (#381) 2023-08-11 02:16:48 +00:00
calendar.rs chore: implement Hash common traits (#381) 2023-08-11 02:16:48 +00:00
chart.rs chore: implement Hash common traits (#381) 2023-08-11 02:16:48 +00:00
clear.rs chore: implement Hash common traits (#381) 2023-08-11 02:16:48 +00:00
gauge.rs chore: implement Eq & PartialEq common traits (#357) 2023-08-04 08:23:26 +00:00
list.rs chore: implement Hash common traits (#381) 2023-08-11 02:16:48 +00:00
mod.rs feat(widgets::table): add option to always allocate the "selection" constraint (#375) 2023-08-11 14:15:46 +00:00
paragraph.rs chore: implement Hash common traits (#381) 2023-08-11 02:16:48 +00:00
reflow.rs Chore: implement Clone & Copy common traits (#350) 2023-07-28 11:04:29 +00:00
scrollbar.rs chore: implement Hash common traits (#381) 2023-08-11 02:16:48 +00:00
sparkline.rs chore: implement Hash common traits (#381) 2023-08-11 02:16:48 +00:00
table.rs feat(widgets::table): add option to always allocate the "selection" constraint (#375) 2023-08-11 14:15:46 +00:00
tabs.rs chore: implement Hash common traits (#381) 2023-08-11 02:16:48 +00:00