hjg
2024-07-09 30304784e82d4bba24121328da8eb8490aec4f4f
提交 | 用户 | 时间
58d006 1 Select2
A 2 =======
3
4 Select2 is a jQuery-based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.
5
6 To get started, checkout examples and documentation at http://ivaynberg.github.com/select2
7
8 Use cases
9 ---------
10
11 * Enhancing native selects with search.
12 * Enhancing native selects with a better multi-select interface.
13 * Loading data from JavaScript: easily load items via ajax and have them searchable.
14 * Nesting optgroups: native selects only support one level of nested. Select2 does not have this restriction.
15 * Tagging: ability to add new items on the fly.
16 * Working with large, remote datasets: ability to partially load a dataset based on the search term.
17 * Paging of large datasets: easy support for loading more pages when the results are scrolled to the end.
18 * Templating: support for custom rendering of results and selections.
19
20 Browser compatibility
21 ---------------------
22 * IE 8+
23 * Chrome 8+
24 * Firefox 10+
25 * Safari 3+
26 * Opera 10.6+
27
28 Integrations
29 ------------
30
31 * [Wicket-Select2](https://github.com/ivaynberg/wicket-select2) (Java / [Apache Wicket](http://wicket.apache.org))
32 * [select2-rails](https://github.com/argerim/select2-rails) (Ruby on Rails)
33 * [AngularUI](http://angular-ui.github.com/#directives-select2) ([AngularJS](angularjs.org))
34 * [Django](https://github.com/applegrew/django-select2)
35 * [Symfony](https://github.com/19Gerhard85/sfSelect2WidgetsPlugin)
36 * [Bootstrap](https://github.com/t0m/select2-bootstrap-css) (CSS skin)
37 * [Yii](https://github.com/tonybolzan/yii-select2)
38
39 Internationalization (i18n)
40 ---------------------------
41
42 Select2 supports multiple languages by simply including the right
43 language JS file (`select2_locale_it.js`, `select2_locale_nl.js`, etc.).
44
45 Missing a language? Just copy `select2_locale_en.js.template`, translate
46 it, and make a pull request back to Select2 here on GitHub.
47
48 Bug tracker
49 -----------
50
51 Have a bug? Please create an issue here on GitHub!
52
53 https://github.com/ivaynberg/select2/issues
54
55 Mailing list
56 ------------
57
58 Have a question? Ask on our mailing list!
59
60 select2@googlegroups.com
61
62 https://groups.google.com/d/forum/select2
63
64
65 Copyright and license
66 ---------------------
67
68 Copyright 2012 Igor Vaynberg
69
70 This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU
71 General Public License version 2 (the "GPL License"). You may choose either license to govern your
72 use of this software only upon the condition that you accept all of the terms of either the Apache
73 License or the GPL License.
74
75 You may obtain a copy of the Apache License and the GPL License in the LICENSE file, or at:
76
77 http://www.apache.org/licenses/LICENSE-2.0
78 http://www.gnu.org/licenses/gpl-2.0.html
79
80 Unless required by applicable law or agreed to in writing, software distributed under the Apache License
81 or the GPL License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
82 either express or implied. See the Apache License and the GPL License for the specific language governing
83 permissions and limitations under the Apache License and the GPL License.