Comparison

class Comparison(style: PriceVariantStyle = PriceVariantStyle.Emphasised, negativePrice: Boolean = false) : PriceVariant

Comparison prices are used alongside an instance of a leading price. They are typically smaller than the leading price. This variant enforces PriceSizeStyle.FixedSize.

Parameters

style

PriceVariantStyle defines the comparison style variation.

negativePrice

Adds a minus sign at the beginning of the price.

Constructors

Link copied to clipboard
constructor(strikeout: Boolean = false, regularFontWeight: Boolean = true, subtle: Boolean = true, negativePrice: Boolean = false)
constructor(style: PriceVariantStyle = PriceVariantStyle.Emphasised, negativePrice: Boolean = false)