PHP Classes

File: public/asset/vendor/select2/docs/pages/14.advanced/02.default-adapters/01.selection/docs.md

Recommend this page to a friend!
  Classes of fathurrahman   mnTemplate   public/asset/vendor/select2/docs/pages/14.advanced/02.default-adapters/01.selection/docs.md   Download  
File: public/asset/vendor/select2/docs/pages/14.advanced/02.default-adapters/01.selection/docs.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: mnTemplate
Route HTTP requests to callback functions
Author: By
Last change:
Date: 1 year ago
Size: 1,144 bytes
 

Contents

Class file image Download

title: Selection taxonomy:

category: docs

Select2 provides the SingleSelection and MultipleSelection adapters as default implementations of the SelectionAdapter for single- and multi-select controls, respectively. Both SingleSelection and MultipleSelection extend the base BaseSelection adapter.

The selection adapter can be overridden by assigning a custom adapter to the selectionAdapter configuration option.

select2/selection

Decorators

Placeholder and HidePlaceholder

AMD Modules:

select2/selection/placeholder select2/dropdown/hidePlaceholder

These decorators implement Select2's placeholder features.

AllowClear

AMD Modules:

select2/selection/allowClear

This decorator implements clearable selections as exposed through the allowClear option.

EventRelay

AMD Modules:

select2/selection/eventRelay

Select2 has an internal event system that is used to notify parts of the component that state has changed, as well as an adapter that allows some of these events to be relayed to the outside word.