ImaskNumericInput

open class ImaskNumericInput(value: Number? = null, min: Number? = null, max: Number? = null, decimals: Int = 2, decimalSeparator: Char = I18n.detectDecimalSeparator(), thousandsSeparator: Char? = I18n.detectThousandsSeparator(), padFractionalZeros: Boolean = false, normalizeZeros: Boolean = true, className: String? = null, init: ImaskNumericInput.() -> Unit? = null)

Numeric input component with masked input.

Parameters

value

numeric input value

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 (default: auto detect)

padFractionalZeros

pads fractional zeros at end to the length of scale

normalizeZeros

appends or removes zeros at the end

className

CSS class names

init

an initializer extension function

Constructors

Link copied to clipboard
constructor(value: Number? = null, min: Number? = null, max: Number? = null, decimals: Int = 2, decimalSeparator: Char = I18n.detectDecimalSeparator(), thousandsSeparator: Char? = I18n.detectThousandsSeparator(), padFractionalZeros: Boolean = false, normalizeZeros: Boolean = true, className: String? = null, init: ImaskNumericInput.() -> Unit? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Determines if the numeric input is automatically focused.

Link copied to clipboard
var decimals: <Error class: unknown class>

The number of decimal digits.

Link copied to clipboard
var decimalSeparator: <Error class: unknown class>

The decimal separator.

Link copied to clipboard
open var disabled: <Error class: unknown class>

Determines if the field is disabled.

Link copied to clipboard
var max: <Error class: unknown class>

Maximal value.

Link copied to clipboard
var min: <Error class: unknown class>

Minimal value.

Link copied to clipboard
open var name: String?

The name attribute of the generated HTML input element.

Link copied to clipboard
var normalizeZeros: <Error class: unknown class>

Appends or removes zeros at the end.

Link copied to clipboard
var padFractionalZeros: <Error class: unknown class>

Pads fractional zeros at end to the length of scale.

Link copied to clipboard

The placeholder for the numeric input.

Link copied to clipboard

Determines if the numeric input is read-only.

Link copied to clipboard
open var size: <Error class: unknown class>?

The size of the input.

Link copied to clipboard
var startValue: <Error class: unknown class>

The value attribute of the generated HTML input element.

Link copied to clipboard
var thousandsSeparator: <Error class: unknown class>

The thousands separator.

Link copied to clipboard
open var validationStatus: <Error class: unknown class>?

The validation status of the input.

Link copied to clipboard
open var value: Number?

Spinner input value.

Functions

Link copied to clipboard
open fun afterDestroy()
Link copied to clipboard
open fun afterInsert(node: <Error class: unknown class>)
Link copied to clipboard
open fun buildAttributeSet(attributeSetBuilder: <Error class: unknown class>)
Link copied to clipboard
open fun buildClassSet(classSetBuilder: <Error class: unknown class>)
Link copied to clipboard
open fun getState(): Number?
Link copied to clipboard

Returns the value of the numeric input as a String.

Link copied to clipboard
open fun installMask()

Install the input mask controller.

Link copied to clipboard
open fun render(): <Error class: unknown class>
Link copied to clipboard
open fun setState(state: Number?)
Link copied to clipboard
open fun subscribe(observer: (Number?) -> Unit): () -> Unit
Link copied to clipboard
open fun uninstallMask()

Uninstall the input mask controller.