Single Select

<sw-single-select>

n/a

Component properties

Property name Type Default
options Array
value
isLoading Boolean false
highlightSearchTerm Boolean true
placeholder String
labelProperty String label
valueProperty String value
popoverConfig Object
searchFunction Function

Methods

Method name Parameters
isSelected item
onSelectExpanded No parameters
tryGetSearchText option
onSelectCollapsed No parameters
closeResultList No parameters
setValue item
resetActiveItem pos
onInputSearchTerm No parameters
debouncedSearch No parameters
search No parameters
getKey object keyPath defaultValue

Imports

  • ./sw-single-select.scss
  • ./sw-single-select.html.twig

Twig blocks

  • sw_single_select_single_selection_inner_label
  • sw_single_select_single_selection_inner_input
  • sw_single_select_single_selection_inner
  • sw_single_select_base_selection_slot
  • sw_single_select_base_selection
  • sw_single_select_base_results_list_before
  • sw_single_select_base_results_list_result_label
  • sw_single_select_base_results_list_result
  • sw_single_select_base_results_list_after
  • sw_single_select_base_results_list
  • sw_single_select_base_results_slot
  • sw_single_select_base_results
  • sw_single_select_base
  • sw_single_select

Slots

  • selection-label-property
  • before-item-list
  • result-item
  • result-label-property
  • after-item-list