
What is that this?
This can be a jQuery plugin extending the performance of Twitter Bootstrap 3. It lets you flip a default choose enter discipline into a component utterly matching the fashion of Twitter Bootstrap 3 with one line of JavaScript.
Why use it?
- applies Twitter Bootstrap 3 fashion to a choose enter discipline
- preserves native choose enter discipline habits (you should utilize GET or POST strategies to submit the chosen worth)
- simply styleable
- by default makes use of Twitter Bootstrap3 button styling and discipline sizing classnames, however this may be simply overridden by utilizing customized ones
- preserves choose factor customized attributes and populates them on generated enter discipline
- opens above discipline if there may be not sufficient area under it
- helps keyboard navigation (up/down/enter/tab keys)
- helps fast navigation by means of the choices by first character
- helps change occasion
- gives strategies for straightforward enabling/disabling the complete choose or single choice
- gives strategies for dynamically getting/setting worth
- gives strategies for dynamically including/eradicating choices
- might be customised to filter out choices on person enter (typeahead/autocomplete-like performance)
- might be customised to indicate a scrollbar when there are a lot of choices
Straightforward to make use of
Instance:
<script> $(doc).prepared(operate(){ $('.some_classname').bootstrapSelect(); }); </script>
Please notice: step-by-step rationalization is within the docs.
This plugin requires
- jQuery JavaScript library
- Twitter Bootstrap 3 front-end framework
Changelog
v 1.6 (2 January 2014)
Added strategies to allow/disable single choice
v 1.5 (19 December 2013)
Opens above the sphere when there may be not sufficient area under it
v 1.4 (13 December 2013)
Fastened dynamic including/eradicating choices bug, when it was affecting a number of situations
v 1.3 (8 December 2013)
Chance to customize customized choose to just accept person enter and filter the choices (typeahead, autocomplete);
Added strategies to dynamically add/take away choices
v 1.2 (7 December 2013)
Disable/allow strategies; navigation with up/down arrow keys; shut on enter key press;
v 1.1 (6 December 2013)
Fast navigation by means of record utilizing letter/quantity keys
v 1.0 (20 October 2013)
Restructured plugin and added public strategies: get_value, set_value
v 0.4 (14 October 2013)
Customized attributes on preliminary choose factor are copied to a generated HTML factor
v 0.3 (22 September 2013)
Added javascript ‘change’ occasion help
v 0.2 (21 September 2013)
Autocomplete prevented on enter discipline, typing and pasting prevented, added a brand new choice – most objects seen with out a scrollbar
v 0.1 (27 August 2013)
Repair: prevented kind submit on caret/button click on
Preliminary launch (13 August 2013)