Module: addon/components/sl-select

Extends

  • ember/Component
  • module:mixins/sl-input-based
  • module:mixins/sl-tooltip-based

Members

(inner) classNames :Array.<String>

Type:
  • Array.<String>
Source:

(inner) disableSearch :Boolean

Whether to show the search filter input or not

Type:
  • Boolean
Default Value:
  • false
Source:

(inner, nullable) input :Object

The internal input element, used for Select2's bindings

Type:
  • Object
Default Value:
  • null
Source:

(inner) layout :Object

Type:
  • Object
Source:

(inner, nullable) maximumSelectionSize :Number

The maximum number of selections allowed when multiple is enabled

Type:
  • Number
Default Value:
  • null
Source:

(inner) multiple :Boolean

Whether to allow multiple selections

Type:
  • Boolean
Default Value:
  • false
Source:

(inner) optionDescriptionPath :String

The path key for each option object's description

Type:
  • String
Default Value:
  • 'description'
Source:

(inner) optionLabelPath :String

The path key for each option object's label

Type:
  • String
Default Value:
  • 'label'
Source:

(inner) optionValuePath :String

The path key for each option object's value

Type:
  • String
Default Value:
  • 'value'
Source:

(inner) value :Array|String

The current value of the select input

Type:
  • Array | String
Default Value:
  • null
Source:

Methods

(inner) destroySelect2() → {undefined}

Teardown the select2 to prevent memory leaks

Source:
Listens to Events:
  • event:willClearRender
Returns:
Type
undefined

(inner) setupSelect2() → {undefined}

Set up select2 initialization after the element is inserted in the DOM

Source:
Listens to Events:
  • event:didInsertElement
Returns:
Type
undefined