Category Tree Field

<sw-category-tree-field>

n/a

Component properties

Property name Type Default
categoriesCollection Array
disabled Boolean false
placeholder String

Methods

Method name Parameters
createdComponent No parameters
destroyedComponent No parameters
getTreeItems parentIds
onCheckSearchItem item
onCheckItem item
removeItem item
searchCategories term
isSearchItemChecked itemId
isSearchResultInFocus item
getBreadcrumb item
getLabelName item
onDeleteKeyup No parameters
removeTagLimit No parameters
openDropdown
closeDropdown No parameters
closeDropdownOnClickOutside event
handleGeneralKeyEvents event
handleArrowKeyEvents event
changeSearchSelection type
getFirstChildById itemId children
getSibling isNext item children
toggleSelectedTreeItem shouldOpen
findTreeItemVNodeById itemId children

Imports

  • ./sw-category-tree-field.html.twig
  • ./sw-category-tree-field.scss

Watcher

  • categoriesCollection
  • term
  • selectedTreeItem

Inject

  • repositoryFactory
  • context

SASS variables

Variable name Value
$sw-category-tree-field-transition-results all ease-in-out 0.2s

Twig blocks

  • sw_category_tree_field_input_labels_property
  • sw_category_tree_field_input_labels_dismiss_icon
  • sw_category_tree_field_input_labels
  • sw_category_tree_field_input_labels_hidden_tag
  • sw_category_tree_field_input_field
  • sw_category_tree_field_input_results_tree_headline
  • sw_category_tree_field_input_results_tree_search
  • sw_category_tree_field_input_results_tree_item_actions
  • sw_category_tree_field_input_results_tree_item
  • sw_category_tree_field_input_results_tree_items
  • sw_category_tree_field_input_results_tree
  • sw_category_tree_field_input_results_search_results_item_checkbox
  • sw_category_tree_field_input_results_search_results_item_folder_icon
  • sw_category_tree_field_input_results_search_results_item_folder
  • sw_category_tree_field_input_results_search_results_item_endpoint_icon
  • sw_category_tree_field_input_results_search_results_item_endpoint
  • sw_category_tree_field_input_results_search_results_item_name_highlight
  • sw_category_tree_field_input_results_search_results_item_name
  • sw_category_tree_field_input_results_search_results_item
  • sw_category_tree_field_input_results_search_results
  • sw_category_tree_field_input_search_results_empty
  • sw_category_tree_field_input_results
  • sw_category_tree_field_input_transition
  • sw_category_tree_field_input
  • sw_category_tree_field

Slots

  • labelProperty