use-bootstrap / use-bootstrap-select

Create a select element using the native Bootstrap 5 dropdown UI.
http://use-bootstrap-select.js.org/
MIT License
18 stars 3 forks source link

Some improvements #11

Open adaniello opened 2 months ago

adaniello commented 2 months ago

First of all... well done! Your code is clean and effective.

This however was the main problem for bootstrap-select is dead. There are many things about that project that were perhaps superfluous for most cases, but others that could make your project perfect. For example:

Thank you

Yohn commented 2 months ago

Using labels, or badges would be fine. Being able to set the class we'd like the selected options to be would be ideal.

Also, if we could have an event fired when the user creates a new "tag" or "option" that would be good cause we could then add it to the database if need be or check against anything that might not be allowed.

  • "position" should be able to be automatic (thanks to Popper)
  • possibility to limit the maximum number of options selected in the case of "multiple" ones;

Agreeing on the position thanks to Popper, and definitely having a maximum number of selected options would be good.

  • possibility to select/deselect all options;

There is a "clearable" option we can use.

Otherwise, this is a great plugin, and I'll be still using it for a current project I'm working on. Thank you!