1
0
mirror of synced 2025-02-04 06:09:23 +03:00
Kevin Brown 9d4ec4f85b Add templating documentation
This adds documentation for the `templateResult` and
`templateSelection` options.  The fact that placeholders and
custom messages are templated was noted, although most people
should be using the standard `text` property that they provide
anyway.  This fixes the templating link provided in the release
announcement to link to the correct location in the documentation.

This also adds support for the `templateSelection` function to
return a DocumentFragment or jQuery compatible object to be
passed back and rendered.

This closes https://github.com/select2/select2/issues/3005.
This closes https://github.com/select2/select2/issues/3019.
2015-02-09 19:27:10 -05:00
..
2015-01-22 14:49:39 -05:00
2015-01-05 19:30:15 -05:00
2014-10-21 21:43:58 -04:00
2015-02-09 17:35:40 -05:00
2014-10-21 21:43:58 -04:00
2015-01-05 18:22:27 -05:00
2015-02-09 17:35:40 -05:00
2015-02-05 17:34:54 +01:00
2015-02-09 19:27:10 -05:00
2015-01-12 19:56:25 -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.

Pull requests will usually be ignored, documentation fixes should be made in the source repository. We may accept pull requests if they match the source docs directory, but for the most part pull requests will be closed on sight.

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.