jQuery plugin for easy manipulation and customization of HTML selects
forceRenderAbove
and forceRenderBelow
option (thanks @SassNinja!) #197Improvements to keyboard navigation and accessibility.
Various changes to the code to be more simple, testable and increase code coverage. Fixed "Invalid regular expression" error, #111
Only render selectric-items at top, if they fit in the viewport, #110
!default
to variables in the Sass file.Added "main" property in package.json, to work with browserify/webpack.
labelBuilder
option. Can be used similarly to optionsItemBuilder
:$('select').selectric({
labelBuilder: function(currItem) {
return '<strong><em>' + currItem.text + '</em></strong>';
}
});