Many To Many Assignment Card

<sw-many-to-many-assignment-card>

ready

Usage

<sw-many-to-many-assignment-card
    title="your card title"
    :entityCollection="entity.association"
    :localMode="entity.isNew()"
    :searchableFields="['entity.fieldName', 'entity.otherFieldName']">

<sw-many-to-many-assignment-card>

Component properties

Property name Type Default
columns Array
entityCollection Array
localMode Boolean
resultLimit Number 25
criteria Object
highlightSearchTerm Boolean true
labelProperty String name
placeholder String
searchableFields Array

Methods

Method name Parameters
createdComponent No parameters
initData No parameters
onSearchTermChange input
debouncedSearch No parameters
onSelectExpanded No parameters
paginateResult No parameters
searchItems No parameters
onItemSelect item
removeItem item
isSelected item
resetActiveItem No parameters
onSelectCollapsed No parameters
resetSearchCriteria No parameters
getKey object keyPath defaultValue
paginateGrid
setGridFilter No parameters
addContainsFilter criteria
removeFromGrid item

Imports

  • ./sw-many-to-many-assignment-card.html.twig
  • ./sw-many-to-many-assignment-card.scss

Watcher

  • criteria
  • languageId

Inject

  • repositoryFactory

Twig blocks

  • sw_entity_many_to_many_assignment_card_search_field
  • sw_entity_many_to_many_assignment_card_results_list_before
  • sw_entity_many_to_many_assignment_card_results_list_list_item_label
  • sw_entity_many_to_many_assignment_card_results_list_list_item
  • sw_entity_many_to_many_assignment_card_results_list_result
  • sw_entity_many_to_many_assignment_card_results_list_after
  • sw_entity_many_to_many_assignment_card_results_list
  • sw_entity_many_to_many_assignment_card_select
  • sw_entity_many_to_many_assignment_card_head
  • sw_entity_many_to_many_assignment_card_content
  • sw_entity_many_to_many_assignment_card_grid_column
  • sw_entity_many_to_many_assignment_card_grid_column_actions
  • sw_entity_many_to_many_assignment_card_grid_footer_remote_mode
  • sw_entity_many_to_many_assignment_card_grid_footer_local_mode
  • sw_entity_many_to_many_assignment_card_grid_footer
  • sw_entity_many_to_many_assignment_card_grid
  • sw_entity_many_to_many_assignment_card

Slots

  • before-item-list
  • result-item
  • result-label-property
  • after-item-list
  • default
  • empty-state