ratatui/tests
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
..
backend_termion.rs feat(terminal)!: add inline viewport (#114) 2023-04-17 14:23:50 +02:00
border_macro.rs feat(border): add border! macro for easy bitflag manipulation (#11) 2023-05-21 15:26:39 -07:00
stylize.rs feat(stylize): allow all widgets to be styled (#289) 2023-07-14 08:37:30 +00:00
terminal.rs style: reformat imports (#219) 2023-06-12 05:07:15 +00:00
widgets_barchart.rs feat(barchart): set custom text value in the bar (#309) 2023-07-14 04:38:54 +00:00
widgets_block.rs fix(title): remove default alignment and position (#323) 2023-07-17 10:27:58 +00:00
widgets_calendar.rs style: reformat imports (#219) 2023-06-12 05:07:15 +00:00
widgets_canvas.rs chore: Minor lints, making Clippy happier (#189) 2023-05-21 20:45:37 -07:00
widgets_chart.rs style: reformat imports (#219) 2023-06-12 05:07:15 +00:00
widgets_gauge.rs chore(demo): update demo gif with a fixed unicode gauge (#227) 2023-06-11 16:23:23 +02:00
widgets_list.rs refactor(text): replace Spans with Line (#178) 2023-05-18 20:21:43 +02:00
widgets_paragraph.rs style(comments): set comment length to wrap at 100 chars (#218) 2023-06-04 12:34:05 +02:00
widgets_table.rs feat(widgets::table): add option to always allocate the "selection" constraint (#375) 2023-08-11 14:15:46 +00:00
widgets_tabs.rs refactor(text): replace Spans with Line (#178) 2023-05-18 20:21:43 +02:00