1
0
mirror of synced 2024-11-27 15:26:02 +03:00
select2/pages/05.data-sources/03.arrays/docs.md
2017-09-03 22:23:13 -04:00

1.5 KiB

title taxonomy process never_cache_twig
Arrays
category
docs
twig
true
true

Loading array data

You may use the data configuration option to load dropdown options from a local array.

You can provide initial selections with array data by providing the option tag for the selected values, similar to how it would be done for a standard select.

duplicate



Backwards compatibility with the tags option

In Select2 v3.5, this option was called tags. However in version 4.0, tags now handles the tagging feature.

For backwards compatibility the tags option can still accept an array of objects, in which case they will be handled in the same manner as the data option.