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

Since there is no grouping of option yet, can we insert arbitrary html in the name? #34

Open
kevinelliott opened this issue Feb 25, 2023 · 6 comments

Comments

@kevinelliott
Copy link

I'd like to have a TAG in front of the name of the results to indicate what kind of content it is, since there's no grouping yet. Is this possible?

@martinpengellyphillips
Copy link
Contributor

Yes, you can put arbitrary tags in the format option to control what's rendered. I'll try to add an example in the coming days (along with how groups can be emulated using disabled options and some custom styling).

@martinpengellyphillips
Copy link
Contributor

FYI I've added a grouping example to the demo site now - search for 'Grouping' in the select box.
The main issue is that the group headers are included in the navigation - I think I will add something to the core to deal with that longer term (and possibly bundle the createGroupedOptions approach once tested more.

@kevinelliott
Copy link
Author

Thanks, how can I use this with async?

@kevinelliott
Copy link
Author

Screenshot 2023-03-07 at 7 45 03 PM

@kevinelliott
Copy link
Author

@martinpengellyphillips Any thoughts?

@martinpengellyphillips
Copy link
Contributor

Did you try modifying the example to use createAsyncOptions helper?

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

No branches or pull requests

2 participants