FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Static registry and clearSelected function by bsontsai · Pull Request #9 · codeshackio/multi-select-dropdown-js · GitHub

Static registry and clearSelected function - #9

Open
bsontsai wants to merge 2 commits into
codeshackio:mainfrom
bsontsai:main
Open

Static registry and clearSelected function#9
bsontsai wants to merge 2 commits into
codeshackio:mainfrom
bsontsai:main

Conversation

Copy link
Copy Markdown

Added a static registry that registers all instances of MultiSelect that have an element id. This makes is a lot easier to access through JavaScript. Deselecting all options can be done through one line in JavaScript

MultiSelect.getById("fruits").clearSelected();

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL