Created
October 3, 2014 12:01
-
-
Save fieldoffice/dc1a85c9d62065f6f63a to your computer and use it in GitHub Desktop.
Using Select2 or Chosen with DataTables
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
/* SELECT 2 */ | |
'fnInitComplete': function(oSettings, json) { | |
$('select').select2({ | |
minimumResultsForSearch: -1 | |
}); | |
} | |
/* CHOSEN 2 */ | |
'fnInitComplete': function(oSettings, json) { | |
$('select').chosen({ | |
disable_search_threshold: 10 | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment