---
title: Array
taxonomy:
category: docs
---
Array
Select2 allows creating the results based on an array of data objects that
is included when initializing Select2.
- Key
data
- Value
- array of objects
The objects that the users can select from should be passed as an array
with each object containing id
and text
properties.
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.
## Decorators