Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to multi-select in a list knob #1038

Open
MarkOSullivan94 opened this issue Nov 9, 2023 · 0 comments
Open

Ability to multi-select in a list knob #1038

MarkOSullivan94 opened this issue Nov 9, 2023 · 0 comments
Labels
m: knobs p: core Related to `widgetbook` package

Comments

@MarkOSullivan94
Copy link

Description

Currently there's no option to enable multi-select within the list knob and we can only select one option at a time.

I want to be able to select one or more options when deciding which bottom nav bar button components I want to see with an alert dot.

The easiest way I've found to do this so far is to have a boolean knob and check which of these values are true before sending that data to my bottom nav bar widget.

Screenshot 2023-11-09 at 14 47 21

As you can see this bloats the right hand panel and so a multi-select list would condense the amount of required space.

Expected Behavior

It would be great if list knob was improved to allow for multi-select. In doing so, it would return a List of the selected values e.g. I have a list of String value and so the return type would be List<String>.

@YoussefRaafatNasry YoussefRaafatNasry added p: core Related to `widgetbook` package m: knobs labels Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
m: knobs p: core Related to `widgetbook` package
Projects
None yet
Development

No branches or pull requests

2 participants