PHP Classes

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

Recommend this page to a friend!
  Classes of fathurrahman   mnTemplate   public/asset/vendor/select2/docs/pages/14.advanced/02.default-adapters/06.dropdown/docs.md   Download  
File: public/asset/vendor/select2/docs/pages/14.advanced/02.default-adapters/06.dropdown/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,756 bytes
 

Contents

Class file image Download

title: Dropdown taxonomy:

category: docs

The dropdown adapter defines the main container that the dropdown should be held in. Select2 allows you to change the way that the dropdown works, allowing you to do anything from attach it to a different location in the document or add a search box.

It is common for decorators to attach to the render and position methods to alter how the dropdown is altered and positioned.

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

select2/dropdown

Decorators

AttachBody

This decorator implements the standard dropdownParent method of attaching the dropdown.

AMD Modules:

select2/dropdown/attachBody

AttachContainer

When this decorator is loaded, Select2 can place the dropdown directly after the selection container, so it will appear in the same location within the DOM as the rest of Select2.

AMD Modules:

select2/dropdown/attachContainer

>>>> Check your build. This module is only included in the full builds of Select2.

DropdownSearch

This decorator implements the search box that is displayed at the top of the dropdown.

AMD Modules:

select2/dropdown/search

MinimumResultsForSearch

This decorator implements the minimumResultsForSearch configuration option.

AMD Modules:

select2/dropdown/minimumResultsForSearch

CloseOnSelect

This decorator implements the closeOnSelect configuration option.

select2/dropdown/closeOnSelect