Skip to content

Static registry and clearSelected function#9

Open
bsontsai wants to merge 2 commits intocodeshackio:mainfrom
bsontsai:main
Open

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

Conversation

@bsontsai
Copy link

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();

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