Skip to main content

CaFilterMultiTreeView

Multi choice tree view filter

SASS-path: ./styles/components/molecules/ca-filter-multi-tree-view.scss

Props​

NameDescriptionTypeRequiredDefault
valuesThe selectable valuesArraytrue-
selectionThe current selectionArraytrue-
displayTreeViewShould it load tree view by default?Booleanfalsefalse

Events​

Event NameDescriptionParameters
selectionchange--

Methods​

MethodDescriptionParameters
sortByOrderOrders the data by its order propdata (Array)
filterProductsFilter the prodcuts and emit the selectionchildren (Array), facetId (String), label (String), Selected (Boolean), parentId (String)
pushSelectionPush the selected filtersfacetId (String), itemLabel (string)
selectChildrenCategoriesSelect the children when a parent is selectedarray (Array)
removeChildrenCategoriesRemove the children when a parent is deselectedarray (Array)
removeSelectionRemove selected filtersfacetId (String)
removeParentCategoriesFind the parents of the child category and deselct themfacetId (String), parentId (string)

Computed​

ComputedTypeDescriptionFrom Store
valuesWithSelectedArrayAdds selected property to the values returned from the apiNo
valuesWithChildrenArrayAdds children properties created from child categories with parentIdNo