Entity Single Select

<sw-entity-single-select>

n/a

Component properties

Property name Type Default
value
highlightSearchTerm Boolean true
placeholder String
labelProperty String name
entity String
resultLimit Number 25
criteria Object
context Object
popoverConfig Object

Methods

Method name Parameters
createdComponent No parameters
loadSelected No parameters
createCollection collection
isSelected item
debouncedSearch No parameters
search No parameters
paginate No parameters
loadData No parameters
displaySearch result
onSelectExpanded No parameters
tryGetSearchText option
onSelectCollapsed No parameters
closeResultList No parameters
setValue item
clearSelection No parameters
resetActiveItem pos
onInputSearchTerm No parameters
getKey object keyPath defaultValue

Imports

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

Watcher

  • value

Inject

  • { "type": "Literal", "start": 402, "end": 421, "value": "repositoryFactory", "raw": "'repositoryFactory'" }

Twig blocks

  • sw_entity_single_select_single_selection_inner_label
  • sw_entity_single_select_single_selection_inner_input
  • sw_entity_single_select_single_selection_inner
  • sw_entity_single_select_base_selection_slot
  • sw_entity_single_select_base_selection
  • sw_entity_single_select_base_results_list_before
  • sw_entity_single_select_base_results_list_result_label
  • sw_entity_single_select_base_results_list_result
  • sw_entity_single_select_base_results_list_after
  • sw_entity_single_select_base_results_list
  • sw_entity_single_select_base_results_slot
  • sw_entity_single_select_base_results
  • sw_entity_single_select_base
  • sw_entity_single_select

Slots

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