⚠️ This instruction is appropriate for App Lib V2 only. Please contact us for further assistance.
Description
The following describes the properties of a filter tree option returned by Filter/Search API.
Filter Tree Properties
Property | Description |
filterOptionId | 'filterOptionId': 'pf_st_availability' |
filterType | 'filterType': 'collection' |
displayType | 'displayType': 'list' |
selectType | 'selectType': 'multiple' |
valueType | 'valueType': 'manual' |
position | 'position: 3 |
keepValuesStatic | 'status': true |
status | 'status': 'active' |
manualValues | Deprecated |
values | Format 1: For Option Selection |
prefix | 'prefix': 'size' |
sliderRange | 'sliderRange': 4 |
sliderDelimiter | 'sliderDelimiter': null |
sliderStep | 'sliderStep': 1 |
isCollapsePC | 'isCollapsePC': false |
isCollapseMobile | 'isCollapseMobile': false |
tooltip | 'tooltip': 'Define your style' |
Example
{
"filter": {
"options": [
{
"sliderStep": null,
"isCollapseMobile": null,
"prefix": null,
"isCollapsePC": null,
"label": "Brand",
"filterOptionId": "pf_v_brand",
"sliderEnableThousand": null,
"sliderDelimiter": null,
"displayType": "list",
"sliderRange": null,
"manualValues": null,
"valueType": "all",
"selectType": "multiple",
"position": "0",
"filterType": "vendor",
"keepValuesStatic": null,
"status": "active",
"values": [
{ "key": "Blade", "doc_count": 4 },
{ "key": "XK Innovations", "doc_count": 2 }
]
},
{
"sliderStep": null,
"isCollapseMobile": false,
"prefix": null,
"isCollapsePC": false,
"label": "Class / Size",
"filterOptionId": "pf_t_class_size",
"sliderEnableThousand": null,
"sliderDelimiter": null,
"displayType": "list",
"sliderRange": null,
"manualValues": ["Less than 200", "200 to 350", "450", "500", "600", "700", "800"],
"valueType": "specific",
"selectType": "multiple",
"position": "1",
"filterType": "tag",
"keepValuesStatic": null,
"status": "active",
"values": [
{ "key": "Less than 200", "doc_count": 6 }
]
}
]
}
}
If you have any questions or need further assistance, please do not hesitate to contact our dedicated support team at [email protected].