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

dbc.Select() should allow individual style options #275

Closed
flyingcujo opened this issue Oct 30, 2019 · 4 comments
Closed

dbc.Select() should allow individual style options #275

flyingcujo opened this issue Oct 30, 2019 · 4 comments

Comments

@flyingcujo
Copy link

Allowing the ability to allow style options in dbc.Select components would allow similar formatting features allowed by dbc.Dropdownmenuitem() - i.e. set active, format font color, etc - without the need to handle callbacks for each item listed.

@tcbegley
Copy link
Collaborator

Hey @flyingcujo

Thanks for the suggestion, but it's actually not possible because the select that gets rendered is a native browser form element rather than styled HTML.

One thing we would plausibly add is support for option groups, which would allow you to have headed sections in the select. But working out how to support that with the current interface would be non-trivial.

@MM-Lehmann
Copy link

How trivial would it be including the title option attribute as supported by dcc.dropdown?
Or maybe supplying dbc.dropdown would be easier?

@tcbegley
Copy link
Collaborator

Hey @MM-Lehmann

Looks like it's fairly straightforward to support this, adding it in #389

@tcbegley
Copy link
Collaborator

tcbegley commented Jun 9, 2020

Adding title to each option is now possible as of version 0.10.2. As mentioned earlier, the amount of additional styling we can do is very limited. After thinking a bit about option groups I've decided not to prioritise it, hence I will close this issue for now.

@tcbegley tcbegley closed this as completed Jun 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants