Methods
# static getMaxPrice(currentPrice, metaListingsData) → {number}
Determines value of the max price filter setting for the query in the backend. This is done to be able to visually restrict the price range in the sliders, i.e. if the slider is at the RANGEMAX the maximum price is not restricted anymore.
Parameters:
Name | Type | Description |
---|---|---|
currentPrice |
number | Value that was returned from the Price RangeSlider component |
metaListingsData |
metaListingsData | meta information about listings in backend |
actual value for the maximum price for the backend query
# static handleSettingsChange(name, value, filterSettings, metaListingsData) → {filterSettings}
Handles new incoming values for any of the filter components that the user can interact with.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Name that was returned from a Slider/Select component |
value |
string | array | New value that was returned from a Slider/Select component |
filterSettings |
filterSettings | current Filter settings configuration |
metaListingsData |
metaListingsData | meta information about listings in backend |
Updated filter settings
# static setPriceRangeMax(metaListingsData) → {number}
Limits the maximum price to RANGEMAX for the slider component for visual clarity.
Parameters:
Name | Type | Description |
---|---|---|
metaListingsData |
metaListingsData | meta information about listings in backend |
Maximum price to restrict the slider component