forked from select2/select2
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Editable Tags feature and other enhancements
# Constructor Parameter | Type | Description ------------------- | ------- | ---------------- clearSearchOnClose | boolean | If set to false, the value of search field will not be cleared when select2 loses focus/closes. Default is true. editableTags | boolean | If set to true, tags will be editable when double clicked. Default is false. getDataText | function| This is used only when editableTags parameter is set to true.This function is called from within the callback function for "Double click" tags event. This function returns a string that will be used as the value for the search field.if this function returned a falsy value, the tag will not be editable. # Events # select2-before-update Fired before tags are updated/removed from DOM.
- Loading branch information
1 parent
212364a
commit 6917944
Showing
2 changed files
with
60 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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