Regular

class Regular(style: PriceVariantStyle = PriceVariantStyle.Emphasised, negativePrice: Boolean = false, sizeStyle: PriceSizeStyle = PriceSizeStyle.MixedSize) : PriceVariant

This is the leading price display used for most price presentations at IKEA. The price display has two style variations called PriceSizeStyle.MixedSize and PriceSizeStyle.FixedSize.

Parameters

style

It indicates whether the font weight is regular FontWeight.Normal+SkapaColors.textAndIcon2 or default Emphasised with FontWeight.W700+SkapaColors.textAndIcon1.

negativePrice

Adds a minus sign at the beginning of the price. Using negative prices forces PriceSizeStyle.FixedSize and also not compatible with BTI.

sizeStyle

The price size style variations to be displayed. The default value is PriceSizeStyle.MixedSize.

Constructors

Link copied to clipboard
constructor(regularFontWeight: Boolean = false, subtle: Boolean, negativePrice: Boolean = false)
constructor(style: PriceVariantStyle = PriceVariantStyle.Emphasised, negativePrice: Boolean = false, sizeStyle: PriceSizeStyle = PriceSizeStyle.MixedSize)