Property | Type | Description | |
---|---|---|---|
$dataRole | string | The Data role, used for Javascript mapping of slider Widget | |
$localeFormat | Magento\Framework\Locale\FormatInterface |
Method | Description | |
---|---|---|
__construct ( Magento\Framework\View\Element\Template\Context $context, Magento\Framework\Json\EncoderInterface $jsonEncoder, Magento\Framework\Locale\FormatInterface $localeFormat, array $data = [] ) | ||
getDataRole ( ) : string | Retrieve the data role | |
getJsonConfig ( ) : string | Return the config of the price slider JS widget. |
Method | Description | |
---|---|---|
canRenderFilter ( ) | {@inheritDoc} | |
getConfig ( ) : array | Retrieve configuration | |
getFieldFormat ( ) : array | Retrieve Field Format for slider display | |
getMaxValue ( ) : integer | Returns max value of the slider. | |
getMinValue ( ) : integer | Returns min value of the slider. |
Method | Description | |
---|---|---|
getCurrentValue ( ) : array | Returns values currently selected by the user. | |
getIntervals ( ) : array | Return available intervals. | |
getUrlTemplate ( ) : string | Retrieve filter URL template with placeholders for range. |
public __construct ( Magento\Framework\View\Element\Template\Context $context, Magento\Framework\Json\EncoderInterface $jsonEncoder, Magento\Framework\Locale\FormatInterface $localeFormat, array $data = [] ) | ||
$context | Magento\Framework\View\Element\Template\Context | Template context. |
$jsonEncoder | Magento\Framework\Json\EncoderInterface | JSON Encoder. |
$localeFormat | Magento\Framework\Locale\FormatInterface | Price format config. |
$data | array | Custom data. |
protected getFieldFormat ( ) : array | ||
return | array |
public getJsonConfig ( ) : string | ||
return | string |
protected getMaxValue ( ) : integer | ||
return | integer |
protected getMinValue ( ) : integer | ||
return | integer |
protected string $dataRole | ||
return | string |