1
0
mirror of synced 2024-11-22 13:06:08 +03:00
select2/docs/vendor
Kevin Brown 8aca7a4085 Added templating example
This also fixes the case where `templateResult` does not return a
string, where it will fall back to jQuery to set the value of the
option.  This allows for the `templateResult` function to return a
jQuery or DOM element that contains the templated data.

Just like with the translation methods, only strings returned from
`templateResult` will be escaped.

The old flag icons have been transferred from the old repository to
the documentation, for use in the templates.  Unfortunately I cannot
find a license for them, but I suspect a license isn't actually
needed considering the state flags are public.

This closes https://github.com/select2/select2/issues/3005.
This closes https://github.com/select2/select2/issues/818.
2015-02-09 17:35:40 -05:00
..
css Started building out the examples 2014-10-21 21:43:58 -04:00
fonts Started building the docs site 2014-10-21 21:43:58 -04:00
images/flags Added templating example 2015-02-09 17:35:40 -05:00
js Fix broken Placeholder.js links 2015-02-06 19:34:48 -05:00