mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[GH-ISSUE #1057] Add multi-select widget #764
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#764
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SamWhited on GitHub (Nov 23, 2024).
Original GitHub issue: https://github.com/rivo/tview/issues/1057
I'm implementing a third party form markup in tview and one widget they have that currently has no equivalent in tview is a "multi-select list". For single selection I've implemented it using tviews DropDown. Having something similar but allowing multiple selection would be nice. I could see this being done in a few ways:
Currently I'm implementing this using individual checkboxes but that's not ideal for a number of reasons. In part because there's no visual indicator that the checkboxes are related or a single group, and there's no way to add a label above the checkboxes matching the form items label (each individual checkbox has the label of the actual item in the multi-select, but the multi-select form fields title cannot be displayed), also submission logic is quite complicated and would be simplified by having a single widget that only gives you a list of the selected values.
This is similar to issue #965, but I believe they are distinct issues as that sounds like a more specialized adaptation of the table widget. I'd be happy to help with any of these depending on what sort of widgets you're interested in having.
@SamWhited commented on GitHub (Nov 23, 2024):
My apologies, I had searched for "multi-select" but for some reason that didn't come up with #330 which this appears to be a duplicate of. Closing in favor of the original issue.