CategoriesFilter¶
The CategoriesFilter object represents a categories filter in the storefront.
classDiagram
direction LR
CategoriesFilter --> CategoriesFilterValuesList
CategoriesFilter --> CategoriesFilterValue
class CategoriesFilter{
string name
bool isActive
bool hasCounters
bool isSingleChoiceOnly
int limit
CategoriesFilterValuesList values
?CategoriesFilterValue current
?CategoriesFilterValue parent
}
class CategoriesFilterValuesList{
}
class CategoriesFilterValue{
}
Properties¶
| Attribute name | Type | Description |
|---|---|---|
| name | string |
The name of the categories filter. |
| isActive | bool |
Returns true if categories filter is active. |
| hasCounters | bool |
Returns true if categories filter has counter that represents number of products meeting the criteria. |
| isSingleChoiceOnly | bool |
Returns true if categories filter is single choice. |
| limit | number |
Number of visible options in the filter. |
| values | null|CategoriesFilterValue |
Returns CategoriesFilterValuesList object that represents list of categories filters values. |
| current | null|CategoriesFilterValue |
Returns CategoriesFilterValue object that represents value of categories filter for current category. |
| parent | null|CategoriesFilterValue |
Returns CategoriesFilterValue object that represents value of categories filter for parent category. |