Entity Many To Many Select

<sw-entity-many-to-many-select>

n/a

Component properties

Property name Type Default
labelProperty String name
resultLimit Number 25
valueLimit Number 5
localMode Boolean false
criteria Object
highlightSearchTerm Boolean true
placeholder String
entityCollection Array
context Object

Methods

Method name Parameters
createdComponent No parameters
initData No parameters
isSelected item
fetchDisplayItems No parameters
displayAssigned collection
displaySearch result
sendSearchRequest No parameters
findAssignedEntities ids searchResult
search No parameters
paginateResult No parameters
paginateDisplayList No parameters
emitChanges ids
addItem item
remove item
removeIdFromList id
resetSearchCriteria No parameters
onSelectExpanded No parameters
onSelectCollapsed No parameters
onSearchTermChange term
resetActiveItem No parameters
debouncedSearch No parameters
resetResultCollection No parameters
getKey object keyPath defaultValue

Imports

  • ./sw-entity-many-to-many-select.html.twig

Watcher

  • entityCollection

Inject

  • { "type": "Literal", "start": 452, "end": 471, "value": "repositoryFactory", "raw": "'repositoryFactory'" }
  • { "type": "Literal", "start": 487, "end": 496, "value": "context", "raw": "'context'" }

Twig blocks

  • sw_entity_many_to_many_select_base_selection_list_label
  • sw_entity_many_to_many_select_base_selection_list
  • sw_entity_many_to_many_select_base_selection_slot
  • sw_entity_many_to_many_select_base_selection
  • sw_entity_many_to_many_select_base_results_list_before
  • sw_entity_many_to_many_select_base_results_list_result_label
  • sw_entity_many_to_many_select_base_results_list_result
  • sw_entity_many_to_many_select_base_results_list_after
  • sw_entity_many_to_many_select_base_results_list
  • sw_entity_many_to_many_select_base_results_slot
  • sw_entity_many_to_many_select_base_results
  • sw_entity_many_to_many_select_base
  • sw_entity_many_to_many_select

Slots

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