Imask Numeric
open class ImaskNumeric(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)
The form field component for the numeric control with masked input.
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
Constructors
Link copied to clipboard
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)
Properties
Link copied to clipboard
The decimal separator.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Appends or removes zeros at the end.
Link copied to clipboard
Pads fractional zeros at end to the length of scale.
Link copied to clipboard
The placeholder for the numeric input.
Link copied to clipboard
The value attribute of the generated HTML input element.
Link copied to clipboard
The thousands separator.
Link copied to clipboard