Skip to content
This repository was archived by the owner on Sep 12, 2019. It is now read-only.

documentation for select2/select2#4795 #27

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pages/03.configuration/01.options-api/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ The following is an attempt to provide a comprehensive list of all configuration
| `placeholder` | string or object | `null` | Specifies the [placeholder](/placeholders) for the control. |
| `query` | A function taking `params` (including a `callback`) | `Query` | **This option was deprecated in Select2 v4.0, and will be removed in v4.1.** |
| `resultsAdapter` | | `ResultsAdapter` | Used to override the built-in [ResultsAdapter](/advanced/default-adapters/results). |
| `searchElement` | string | | Used to change the search Element from `<input>` to `<textarea>` Which allows for tab and newline charachters. Particularly useful for copying and pasting values from a spreadsheet. (set to 'textarea' for a textarea) |
| `selectionAdapter` | | `SingleSelection` or `MultipleSelection`, depending on the value of `multiple`. | Used to override the built-in [SelectionAdapter](/advanced/default-adapters/selection). |
| `selectOnClose` | boolean | `false` | Implements [automatic selection](/dropdown#automatic-selection) when the dropdown is closed. |
| `sorter` | callback | | |
Expand Down