Skip to content

Instantly share code, notes, and snippets.

@nickciolpan
Created September 28, 2018 10:29
Show Gist options
  • Save nickciolpan/08634c24365c3bd492a627a6f749e8ce to your computer and use it in GitHub Desktop.
Save nickciolpan/08634c24365c3bd492a627a6f749e8ce to your computer and use it in GitHub Desktop.
// I'm keeping .class and $selector separated for edge cases in which dom-content is dynamic and can't be cached.
const $multiSelect = $('.js-multiselect'),
defaults = {
buttonClass: 'btn btn-default',
buttonWidth: '100%',
nonSelectedText: '---',
nSelectedText: ' selected',
allSelectedText: 'All',
includeSelectAllOption: false,
numberDisplayed: 1,
enableFiltering: false,
enableCaseInsensitiveFiltering: false
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment