Skip to content

table: Add row_selector option to hide selector column - #2357

Merged
madcodelife merged 1 commit into
mainfrom
table-row-selector-option
May 13, 2026
Merged

table: Add row_selector option to hide selector column#2357
madcodelife merged 1 commit into
mainfrom
table-row-selector-option

Conversation

@madcodelife

Copy link
Copy Markdown
Member

Closes #2351.

TableState::cell_selectable(true) always renders the leftmost row-selector column. Add a row_selector(bool) builder (default true) so the column can be hidden while keeping cell selection.

When hidden, clicking the already-selected cell again to select row.

@madcodelife
madcodelife requested a review from huacnlee May 11, 2026 08:16
`TableState::cell_selectable(true)` always renders the leftmost row-selector
column. Add a `row_selector(bool)` builder (default `true`) so the column
can be hidden while keeping cell selection. When hidden, clicking the
already-selected cell again escalates to row selection.

Closes #2351
@madcodelife
madcodelife force-pushed the table-row-selector-option branch from 77ee334 to 156d12e Compare May 13, 2026 03:45
@madcodelife
madcodelife merged commit ba44512 into main May 13, 2026
3 checks passed
@madcodelife
madcodelife deleted the table-row-selector-option branch May 13, 2026 08:38
AzureZee pushed a commit to AzureZee/gpui-component that referenced this pull request May 16, 2026
…2357)

Closes longbridge#2351.

`TableState::cell_selectable(true)` always renders the leftmost
row-selector column. Add a `row_selector(bool)` builder (default `true`)
so the column can be hidden while keeping cell selection.

When hidden, clicking the already-selected cell again to select row.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

table: add option to hide row selector or custom it

1 participant