Constructor
new FilterOptionSwatch()
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'
Returns:
- Type
- string
getBlockContentTemplate() → {string}
Get the content html template for DisplayType.SWATCH
Returns:
Raw html template
- Type
- string