1
0
mirror of synced 2024-11-23 21:36:09 +03:00
select2/pages/13.advanced/02.default-adapters/04.data/docs.md
2017-09-03 19:02:00 -04:00

1.3 KiB

title taxonomy
SelectAdapter
category
docs

Select2 provides the SelectAdapter as a default implementation of the DataAdapter adapter. It extends BaseAdapter.

This adapter can be overridden by assigning a custom adapter to the dataAdapter configuration option.

AMD Modules:

  • select2/data/base
  • select2/data/select

Decorators

Tags

This decorator implements the tagging feature.

AMD Modules:

select2/data/tags

For backwards compatibility, if an array of objects is passed in with the tags option, the options will be automatically created and the user will be able to select from them. This is the same as how array data works, and has similar limitations.

MinimumInputLength

This decorator implements the minimum search term length feature as exposed through the minimumInputLength configuration option.

AMD Modules:

select2/data/minimumInputLength

MaximumInputLength

This decorator implements the maximum search term length feature as exposed through the maximumInputLength configuration option.

AMD Modules:

select2/data/maximumInputLength