Releases: lcdsantos/jQuery-Selectric
Releases · lcdsantos/jQuery-Selectric
Force render direction
- Added
forceRenderAbove
andforceRenderBelow
option (thanks @SassNinja!) #197
Small fixes
- Detect item visibility function now correctly shows current highlighted item inside a group.
- Other small fixes.
Long waited features
- Added support for "multiple" attribute (thanks @gearsdigital!) #80
- Added index parameter to onBeforeSelec/onSelect callback #96
- Added support for label tags. #103
- Added option to customize select on mobile but retain native dropdown behavior (thanks again @gearsdigital!!) #90
- Various bug fixes #77 #87 #93 #115 #118 #126
Accessibility
Improvements to keyboard navigation and accessibility.
Increasing code quality
Various changes to the code to be more simple, testable and increase code coverage.
Fixed "Invalid regular expression" error, #111
Options box + viewport
Only render selectric-items at top, if they fit in the viewport, #110
UMD
Add main in package.json
Added "main" property in package.json, to work with browserify/webpack.
Fix Bower
Added labelBuilder
- (#70) Added
labelBuilder
option. Can be used similarly tooptionsItemBuilder
:
$('select').selectric({
labelBuilder: function(currItem) {
return '<strong><em>' + currItem.text + '</em></strong>';
}
});