OnsRange

open class OnsRange(value: Number? = null, min: Number = 0, max: Number = 100, step: Number = DEFAULT_STEP, name: String? = null, label: String? = null, rich: Boolean = false, className: String? = null, init: OnsRange.() -> Unit? = null)

Onsen UI form field range component.

Parameters

value

number input value

min

minimal value (default 0)

max

maximal value (default 100)

step

step value (default 1)

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

className

CSS class names

init

an initializer extension function

Constructors

Link copied to clipboard
constructor(value: Number? = null, min: Number = 0, max: Number = 100, step: Number = DEFAULT_STEP, name: String? = null, label: String? = null, rich: Boolean = false, className: String? = null, init: OnsRange.() -> Unit? = null)

Creates a form field range component.

Types

Link copied to clipboard
object Companion

Properties

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

Determines if the range input is automatically focused.

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 range 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

A modifier attribute to specify custom styles.

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

Determines if the range 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 step: <Error class: unknown class>

Step value.

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

Range input 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 subscribe(observer: (Number?) -> Unit): () -> Unit