ImaskNumeric

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)

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

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)

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
val flabel: <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard
val invalidFeedback: <Error class: unknown class>
Link copied to clipboard
var label: <Error class: unknown class>

The label text bound to the numeric input element.

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
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
var rich: <Error class: unknown class>

Determines if label can contain HTML code.

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
Link copied to clipboard
open var value: Number?

Numeric value.

Functions

Link copied to clipboard
open fun blur()
Link copied to clipboard
open fun buildClassSet(classSetBuilder: <Error class: unknown class>)
Link copied to clipboard
open fun focus()
Link copied to clipboard
open fun getState(): Number?
Link copied to clipboard
Link copied to clipboard
open fun removeEventListener(id: Int)
Link copied to clipboard
Link copied to clipboard
open fun <T> setEventListener(block: <Error class: unknown class><T>.() -> Unit): Int
Link copied to clipboard
open fun setState(state: Number?)
Link copied to clipboard
open fun styleForHorizontalFormPanel(horizontalRatio: <Error class: unknown class>)
Link copied to clipboard
open fun subscribe(observer: (Number?) -> Unit): () -> Unit