ImaskNumeric

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)

decimalSeparator

the decimal separator (default: auto detect)

thousandsSeparator

the thousands separator

padFractionalZeros

pads fractional zeros at end to the length of scale

normalizeZeros

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