Ons Number
open class OnsNumber(value: Number? = null, min: Number? = null, max: Number? = null, step: Number = DEFAULT_STEP, placeholder: String? = null, floatLabel: Boolean? = null, name: String? = null, label: String? = null, rich: Boolean = false, className: String? = null, init: OnsNumber.() -> Unit? = null)
Onsen UI form field number component.
Parameters
value
number input value
min
minimal value
max
maximal value
step
step value (default 1)
placeholder
the placeholder for the number input
float Label
whether the placeholder will be animated in Material Design
name
the name attribute of the generated HTML input element
label
label text bound to the input element
rich
determines if label can contain HTML code
class Name
CSS class names
init
an initializer extension function
Constructors
Link copied to clipboard
constructor(value: Number? = null, min: Number? = null, max: Number? = null, step: Number = DEFAULT_STEP, placeholder: String? = null, floatLabel: Boolean? = null, name: String? = null, label: String? = null, rich: Boolean = false, className: String? = null, init: OnsNumber.() -> Unit? = null)
Creates a form field number component.
Properties
Link copied to clipboard
Determines if autocomplete is enabled for the input element.
Link copied to clipboard
Whether the placeholder will be animated in Material Design.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The placeholder for the number input.
Link copied to clipboard
The value attribute of the generated HTML input element.