Home > widget-integration > FilterHelper > isPriceAlreadyTransformed
FilterHelper.isPriceAlreadyTransformed() method
Checks if price transformation has already been applied to element
Signature:
isPriceAlreadyTransformed(element: Element | null, dataAttribute?: string): boolean;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
element |
Element | null |
DOM element to check |
|
dataAttribute |
string |
(Optional) Data attribute name to check |
Returns:
boolean
true if already transformed