kvision / pl.treksoft.kvision.onsenui.form / OnsNumberInput / <init>

<init>

(js) OnsNumberInput(value: Number? = null, min: Number? = null, max: Number? = null, step: Number = DEFAULT_STEP, placeholder: String? = null, floatLabel: Boolean? = null, inputId: String? = null, classes: Set<String> = setOf(), init: (OnsNumberInput.() -> Unit)? = null)

Creates a number input component.

Parameters

value - number input value

min - minimal value

max - maximal value

step - step value (default 1)

placeholder - the placeholder for the number input

floatLabel - whether the placeholder will be animated in Material Design

inputId - the ID of the input element

classes - a set of CSS class names

init - an initializer extension function

Constructor
Creates a number input component.