AngularJS multiselect directive based on Amitava Saha's original
Thank you, Amitava.
Contributions welcome!
Additions to multiselect directive based on some requirements I have for a multiselect:
- ms-selected-message: optional function to display a custom message for selected items
- txt-regex: optional regex applied on entered text before adding to dropdown
- multiselect template:
- Added link to add an item
- Added link to clear the filter text
- An item can also be added and auto-selected by typing it in and hitting enter
- added a filter 'textFilter'
- Depends on lodash for some convenience functions
- Firefox: In the text filter, pressing escape is bringing back previously entered text. Works fine in Chrome though.
- Clicking the dropdown pushes down content below it. Not sure how to address this.
Example: working on plunkr.
The MIT License