Imask Numeric
constructor(value: Number? = null, name: String? = null, min: Number? = null, max: Number? = null, decimals: Int = 2, decimalSeparator: Char = I18n.detectDecimalSeparator(), thousandsSeparator: Char? = I18n.detectThousandsSeparator(), padFractionalZeros: Boolean = false, normalizeZeros: Boolean = true, label: String? = null, rich: Boolean = false, init: ImaskNumeric.() -> Unit? = null)
Parameters
value
numeric value
name
the name attribute of the generated HTML input element
min
minimal value
max
maximal value
decimals
the number of decimal digits (default 2)
decimal Separator
the decimal separator (default: auto detect)
thousands Separator
the thousands separator
pad Fractional Zeros
pads fractional zeros at end to the length of scale
normalize Zeros
appends or removes zeros at the end
label
label text bound to the input element
rich
determines if label can contain HTML code
init
an initializer extension function