ratatui/src
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 chore: implement Hash common traits (#381) 2023-08-11 02:16:48 +00:00
style feat(stylize): allow all widgets to be styled (#289) 2023-07-14 08:37:30 +00:00
text chore: implement Hash common traits (#381) 2023-08-11 02:16:48 +00:00
widgets feat(widgets::table): add option to always allocate the "selection" constraint (#375) 2023-08-11 14:15:46 +00:00
buffer.rs chore: implement Hash common traits (#381) 2023-08-11 02:16:48 +00:00
layout.rs chore: implement Hash common traits (#381) 2023-08-11 02:16:48 +00:00
lib.rs build(deps): upgrade crossterm to 0.27 (#380) 2023-08-07 13:30:11 +00:00
prelude.rs fix(prelude): remove widgets module from prelude (#317) 2023-07-16 09:11:59 +00:00
style.rs chore: implement Hash common traits (#381) 2023-08-11 02:16:48 +00:00
symbols.rs chore: implement Hash common traits (#381) 2023-08-11 02:16:48 +00:00
terminal.rs chore: implement Hash common traits (#381) 2023-08-11 02:16:48 +00:00
title.rs chore: implement Hash common traits (#381) 2023-08-11 02:16:48 +00:00