22 August, 2012

Select2 3.1


Developer:

Website:

License / Price:

Platforms:

Databases:

Language:

Last Updated:

Category:
Igor Vaynberg | More scripts
ivaynberg.github.com
Apache License 

Windows / Linux / Mac OS / BSD / Solaris
N/A
JavaScript
August 22nd, 2012, 09:55 GMT [view history]
C: \ Forms and Controls

Select2 allows developers to custom style drop-down select elements and optgroups.

Based on the Chosen script.

Here are some key features of "Select2":

· Searching/filter list items
· Remote data sets
· Infinite scrolling of results
· Built-in tagging support
· Selection of multiple values
· Support for disabled states
· Cross-browser tested

Requirements:

· JavaScript enabled on client side
· jQuery 1.4.4 or higher

What's New in This Release: [ read full changelog ]

· Optgroups are now supported in selects. N-level deep nesting of results is supported when attached to input[type=hidden], see the new children property described in the docs.
· Signature of initSeletion has changed to support initialization from asynchronous requests.
· Dropdown will now open below or above the control depending on available screen space. No more scrolling the page to see to see all matched results.
· Signature of formatSelection and formatResult changed in a backwards compatible way to support more powerful constructs than supported by strings alone.
· Separator in multi-valued selects is now cofigurable, , still the default. See separator option in the docs.
· Matching is now customizable. See matcher function in the docs and the Custom Matcher example.
· change event now specifies which elements were added/removed
· width option now supports various strategies instead of always being copied from the source element
· Clicks on a label associated with the source element are now redirected to Select2.
· val will now only accept ids, if you want to specify the full object for the selection use the new data method instead. val will also now only work on non-selects if initSelection was specified.


Download button
Via: Select2 3.1

0 Comment: