1
0
mirror of synced 2024-11-22 13:06:08 +03:00
select2/docs
Kevin Brown d146313256 More about initSelection
In the past, `initSelection` was used for loading in data objects
for the pre-selected options. Now that Select2 is using a `<select>`
element, there is no need for doing this because the `<option>`
elements should provide the relevant information. So you can now
just pull this information from the remote data source
(or static array, in some cases) and build out the `<option>`
elements manually.

In most cases you don't need to go the full length with a custom
data adapter, but instead are just looking to pre-load elements on
the initial page load.

This improves https://github.com/select2/select2/issues/3116.
2015-03-14 19:58:50 -04:00
..
_includes Changed how the builds are done 2015-01-22 14:49:39 -05:00
_layouts Added Google Analytics 2015-01-05 19:30:15 -05:00
dist Started building the docs site 2014-10-21 21:43:58 -04:00
vendor Added templating example 2015-02-09 17:35:40 -05:00
.gitignore Started building the docs site 2014-10-21 21:43:58 -04:00
announcements-4.0.html More about initSelection 2015-03-14 19:58:50 -04:00
community.html Called out 3.5.2 dodcs 2015-01-05 18:22:27 -05:00
examples.html Added example for hiding search 2015-02-27 20:37:48 -05:00
index.html More about initSelection 2015-03-14 19:58:50 -04:00
options.html Rip out the old AMD docs 2015-03-14 19:49:47 -04:00
README.md Clarified the documentation README [ci skip] 2015-02-24 17:27:16 -05:00

Select2 Documentation

This repository holds the latest documentation for Select2.

What is this?

The documentation is automatically extracted from the docs directory at the Select2 source repository. This is done periodically by the maintainers of Select2.

How can I fix an issue in these docs?

If you are reading this from the source repository, within the docs directory, then you're already in the right place. You can fork the source repository, commit your changes, and then make a pull request and it will be reviewed.

If you are reading this from the documentation repository, you are in the wrong place. Pull requests made directly to the documentation repository will be ignored and eventually closed, so don't do that.

How can I build these docs manually?

In the main Select2 repository, you can build the documentation by executing

grunt docs

Which will start up the documentation on port 4000. You will need Jekyll installed to build the documentation.