Class: FilterOptionSwatch

FilterOptionSwatch()

Filter option with displayType = 'swatch'

Constructor

new FilterOptionSwatch()

Source:

Methods

buildSwatchStyle() → {string}

Set the class for swatch styles in the html template Setting for swatch style: general.swatchStyle Possible values: 'circle-list', 'circle-grid', 'square-list', 'square-grid' Default value for vertical: 'circle-grid', default for horizontal: 'circle-list'
Source:
Returns:
Type
string

getBlockContentTemplate() → {string}

Get the content html template for DisplayType.SWATCH
Source:
Returns:
Raw html template
Type
string