forked from brianhsu/lift-combobox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
1,334 additions
and
1,673 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,49 @@ | ||
Select2 | ||
================= | ||
======= | ||
|
||
Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results. Look and feel of Select2 is based on the excellent [Chosen](http://harvesthq.github.com/chosen/) library. | ||
Select2 is a jQuery-based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results. | ||
|
||
To get started -- checkout http://ivaynberg.github.com/select2! | ||
To get started, checkout examples and documentation at http://ivaynberg.github.com/select2 | ||
|
||
What Does Select2 Support That Chosen Does Not? | ||
------------------------------------------------- | ||
Use cases | ||
--------- | ||
|
||
* Working with large datasets: Chosen requires the entire dataset to be loaded as `option` tags in the DOM, which limits | ||
it to working with small-ish datasets. Select2 uses a function to find results on-the-fly, which allows it to partially | ||
load results. | ||
* Paging of results: Since Select2 works with large datasets and only loads a small amount of matching results at a time | ||
it has to support paging. Select2 will call the search function when the user scrolls to the bottom of currently loaded | ||
result set allowing for the 'infinite scrolling' of results. | ||
* Custom markup for results: Chosen only supports rendering text results because that is the only markup supported by | ||
`option` tags. Select2 provides an extension point which can be used to produce any kind of markup to represent results. | ||
* Ability to add results on the fly: Select2 provides the ability to add results from the search term entered by the user, which allows it to be used for | ||
tagging. | ||
* Enhancing native selects with search. | ||
* Enhancing native selects with a better multi-select interface. | ||
* Loading data from JavaScript: easily load items via ajax and have them searchable. | ||
* Nesting optgroups: native selects only support one level of nested. Select2 does not have this restriction. | ||
* Tagging: ability to add new items on the fly. | ||
* Working with large, remote datasets: ability to partially load a dataset based on the search term. | ||
* Paging of large datasets: easy support for loading more pages when the results are scrolled to the end. | ||
* Templating: support for custom rendering of results and selections. | ||
|
||
Browser Compatibility | ||
-------------------- | ||
* IE 8+ (7 mostly works except for [issue with z-index](https://github.com/ivaynberg/select2/issues/37)) | ||
Browser compatibility | ||
--------------------- | ||
* IE 8+ | ||
* Chrome 8+ | ||
* Firefox 3.5+ | ||
* Firefox 10+ | ||
* Safari 3+ | ||
* Opera 10.6+ | ||
|
||
Integrations | ||
------------ | ||
|
||
* [Wicket-Select2](https://github.com/ivaynberg/wicket-select2) (Java / Apache Wicket) | ||
* [Wicket-Select2](https://github.com/ivaynberg/wicket-select2) (Java / [Apache Wicket](http://wicket.apache.org)) | ||
* [select2-rails](https://github.com/argerim/select2-rails) (Ruby on Rails) | ||
* [AngularUI](http://angular-ui.github.com/#directives-select2) ([AngularJS](angularjs.org)) | ||
* [Django](https://github.com/applegrew/django-select2) | ||
* [Symfony](https://github.com/19Gerhard85/sfSelect2WidgetsPlugin) | ||
* [Bootstrap](https://github.com/t0m/select2-bootstrap-css) (CSS skin) | ||
* [Yii](https://github.com/tonybolzan/yii-select2) | ||
|
||
Internationalization (i18n) | ||
--------------------------- | ||
|
||
Select2 supports multiple languages by simply including the right | ||
language JS file (`select2_locale_it.js`, `select2_locale_nl.js`, etc.). | ||
|
||
Missing a language? Just copy `select2_locale_en.js.template`, translate | ||
it, and make a pull request back to Select2 here on GitHub. | ||
|
||
Bug tracker | ||
----------- | ||
|
@@ -42,7 +52,6 @@ Have a bug? Please create an issue here on GitHub! | |
|
||
https://github.com/ivaynberg/select2/issues | ||
|
||
|
||
Mailing list | ||
------------ | ||
|
||
|
@@ -53,22 +62,22 @@ [email protected] | |
https://groups.google.com/d/forum/select2 | ||
|
||
|
||
Copyright and License | ||
Copyright and license | ||
--------------------- | ||
|
||
Copyright 2012 Igor Vaynberg | ||
|
||
This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU | ||
General Public License version 2 (the "GPL License"). You may choose either license to govern your | ||
use of this software only upon the condition that you accept all of the terms of either the Apache | ||
License or the GPL License. | ||
This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU | ||
General Public License version 2 (the "GPL License"). You may choose either license to govern your | ||
use of this software only upon the condition that you accept all of the terms of either the Apache | ||
License or the GPL License. | ||
|
||
You may obtain a copy of the Apache License and the GPL License in the LICENSE file, or at: | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
http://www.gnu.org/licenses/gpl-2.0.html | ||
|
||
Unless required by applicable law or agreed to in writing, software distributed under the Apache License | ||
or the GPL Licesnse is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
either express or implied. See the Apache License and the GPL License for the specific language governing | ||
permissions and limitations under the Apache License and the GPL License. | ||
Unless required by applicable law or agreed to in writing, software distributed under the Apache License | ||
or the GPL License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
either express or implied. See the Apache License and the GPL License for the specific language governing | ||
permissions and limitations under the Apache License and the GPL License. |
6 changes: 3 additions & 3 deletions
6
...resources/toserve/combobox/component.json → ...ain/resources/toserve/combobox/bower.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"name": "select2", | ||
"version": "3.3.1", | ||
"main": ["select2.js", "select2.css", "select2.png", "select2x2.png", "spinner.gif"], | ||
"version": "3.4.5", | ||
"main": ["select2.js", "select2.css", "select2.png", "select2x2.png", "select2-spinner.gif"], | ||
"dependencies": { | ||
"jquery": "~1.4.4" | ||
"jquery": ">= 1.7.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
.form-control .select2-choice { | ||
border: 0; | ||
border-radius: 2px; | ||
} | ||
|
||
.form-control .select2-choice .select2-arrow { | ||
border-radius: 0 2px 2px 0; | ||
} | ||
|
||
.form-control.select2-container { | ||
height: auto !important; | ||
padding: 0px; | ||
} | ||
|
||
.form-control.select2-container.select2-dropdown-open { | ||
border-color: #5897FB; | ||
border-radius: 3px 3px 0 0; | ||
} | ||
|
||
.form-control .select2-container.select2-dropdown-open .select2-choices { | ||
border-radius: 3px 3px 0 0; | ||
} | ||
|
||
.form-control.select2-container .select2-choices { | ||
border: 0 !important; | ||
border-radius: 3px; | ||
} | ||
|
||
.control-group.warning .select2-container .select2-choice, | ||
.control-group.warning .select2-container .select2-choices, | ||
.control-group.warning .select2-container-active .select2-choice, | ||
.control-group.warning .select2-container-active .select2-choices, | ||
.control-group.warning .select2-dropdown-open.select2-drop-above .select2-choice, | ||
.control-group.warning .select2-dropdown-open.select2-drop-above .select2-choices, | ||
.control-group.warning .select2-container-multi.select2-container-active .select2-choices { | ||
border: 1px solid #C09853 !important; | ||
} | ||
|
||
.control-group.warning .select2-container .select2-choice div { | ||
border-left: 1px solid #C09853 !important; | ||
background: #FCF8E3 !important; | ||
} | ||
|
||
.control-group.error .select2-container .select2-choice, | ||
.control-group.error .select2-container .select2-choices, | ||
.control-group.error .select2-container-active .select2-choice, | ||
.control-group.error .select2-container-active .select2-choices, | ||
.control-group.error .select2-dropdown-open.select2-drop-above .select2-choice, | ||
.control-group.error .select2-dropdown-open.select2-drop-above .select2-choices, | ||
.control-group.error .select2-container-multi.select2-container-active .select2-choices { | ||
border: 1px solid #B94A48 !important; | ||
} | ||
|
||
.control-group.error .select2-container .select2-choice div { | ||
border-left: 1px solid #B94A48 !important; | ||
background: #F2DEDE !important; | ||
} | ||
|
||
.control-group.info .select2-container .select2-choice, | ||
.control-group.info .select2-container .select2-choices, | ||
.control-group.info .select2-container-active .select2-choice, | ||
.control-group.info .select2-container-active .select2-choices, | ||
.control-group.info .select2-dropdown-open.select2-drop-above .select2-choice, | ||
.control-group.info .select2-dropdown-open.select2-drop-above .select2-choices, | ||
.control-group.info .select2-container-multi.select2-container-active .select2-choices { | ||
border: 1px solid #3A87AD !important; | ||
} | ||
|
||
.control-group.info .select2-container .select2-choice div { | ||
border-left: 1px solid #3A87AD !important; | ||
background: #D9EDF7 !important; | ||
} | ||
|
||
.control-group.success .select2-container .select2-choice, | ||
.control-group.success .select2-container .select2-choices, | ||
.control-group.success .select2-container-active .select2-choice, | ||
.control-group.success .select2-container-active .select2-choices, | ||
.control-group.success .select2-dropdown-open.select2-drop-above .select2-choice, | ||
.control-group.success .select2-dropdown-open.select2-drop-above .select2-choices, | ||
.control-group.success .select2-container-multi.select2-container-active .select2-choices { | ||
border: 1px solid #468847 !important; | ||
} | ||
|
||
.control-group.success .select2-container .select2-choice div { | ||
border-left: 1px solid #468847 !important; | ||
background: #DFF0D8 !important; | ||
} |
Oops, something went wrong.