Skip to content

devfactor/angular-multiselect

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 

Repository files navigation

angular-multiselect-dynamic

AngularJS multiselect directive based on Amitava Saha's original

Thank you, Amitava.

Contributions welcome!

Changes to original

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

Known issues

  • 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.

Examples

Example: working on plunkr.

License

The MIT License

About

Native AngularJS multiselect directive

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 87.4%
  • HTML 12.0%
  • CSS 0.6%