Magicsuggest / magicsuggest

Multiple Selection Combo Box using Bootstrap 3
nicolasbize.com/magicsuggest/
1.3k stars 269 forks source link

Added support for tooltips in selected items #355

Closed jmalarcon closed 1 year ago

jmalarcon commented 1 year ago

Added a new property title that allows to set a text (optional) that will act as a tooltip for the selected items. Both in the already selected and in those that appear in the dropdown when rendering the search. To use it, it will be enough to populate a property with the same name in the JSON object that feeds the selector.

In the second commit, add support to minify the file (npm run build) and get the current version (in the package.json file) automatically added to the header comment to keep tabs on it when using the minified file.

jmalarcon commented 1 year ago

Thank you for accepting the PR!

Are you going to create a new release?

zergioz commented 1 year ago

I will, but first, I must check all the PRs to update the documentation and create a complete and minified release.

jmalarcon commented 1 year ago

The minified release is already in the PR. I've added a "build" script in npm to make this when the version is ready. It generates the minified version and makes sure it has the same version that is in the ´package.json´ file.

But you're right: I should have updated the docs. Sorry for that.