-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Summary
Add configuration for Table's SetSelectable(selectRows, selectColumns) so both row-only, column-only, and cell selection modes can be expressed in YAML. tviewyaml currently only supports row-selectable mode.
Background
Discovered while planning a tview presentation demo implementation via tviewyaml. The Table slide toggles between (true, false), (false, true), and (true, true) to demonstrate selection modes.
Demo Usage
Demo toggles (true,false), (false,true), (true,true); tviewyaml only supports row-selectable.
Proposed Approach
- Add
selectRows: true/falseandselectColumns: true/falseto Table primitive config (default both false, or match current row-only behavior) - In
builder/builder.go, callSetSelectable(selectRows, selectColumns)when building table
Relevant Files
config/types.go– addselectRows,selectColumnsbuilder/builder.go–populateTableData,buildTabledocs/tview-coverage.md– document once implemented
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels