Package-level declarations

Onsen UI form components.

Types

Link copied to clipboard

Data/time input modes.

Link copied to clipboard
open class OnsButton(content: String? = null, rich: Boolean = false, align: Align? = null, icon: String? = null, buttonType: OnsButtonType? = null, large: Boolean? = null, ripple: Boolean? = null, disabled: Boolean? = null, className: String? = null, init: OnsButton.() -> Unit? = null) : CustomTag

A button component.

Link copied to clipboard

Onsen UI button types.

Link copied to clipboard
open class OnsCheckBox(value: Boolean = false, name: String? = null, label: String? = null, rich: Boolean = false, className: String? = null, init: OnsCheckBox.() -> Unit? = null) : SimplePanel, BoolFormControl, MutableState<Boolean>

Onsen UI form field checkbox component.

Link copied to clipboard
open class OnsCheckBoxInput(value: Boolean = false, inputId: String? = null, className: String? = null, init: OnsCheckBoxInput.() -> Unit? = null) : CheckInput

OnsenUI checkbox input component.

Link copied to clipboard
open class OnsDateTime(value: <Error class: unknown class>? = null, mode: DateTimeMode = DateTimeMode.DATETIME, min: <Error class: unknown class>? = null, max: <Error class: unknown class>? = null, step: Number? = null, name: String? = null, label: String? = null, rich: Boolean = false, className: String? = null, init: OnsDateTime.() -> Unit? = null) : SimplePanel, DateFormControl, MutableState<<Error class: unknown class>?>

Onsen UI form field date/time component.

Link copied to clipboard
open class OnsDateTimeInput(value: <Error class: unknown class>? = null, mode: DateTimeMode = DateTimeMode.DATETIME, min: <Error class: unknown class>? = null, max: <Error class: unknown class>? = null, step: Number? = null, inputId: String? = null, className: String? = null, init: OnsDateTimeInput.() -> Unit? = null) : Widget, GenericFormComponent<<Error class: unknown class>?> , FormInput, MutableState<<Error class: unknown class>?>

OnsenUI date/time input component.

Link copied to clipboard
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) : SimplePanel, NumberFormControl, MutableState<Number?>

Onsen UI form field number component.

Link copied to clipboard
open class OnsNumberInput(value: Number? = null, min: Number? = null, max: Number? = null, step: Number = DEFAULT_STEP, placeholder: String? = null, floatLabel: Boolean? = null, inputId: String? = null, className: String? = null, init: OnsNumberInput.() -> Unit? = null) : Widget, GenericFormComponent<Number?> , FormInput, MutableState<Number?>

OnsenUI number input component.

Link copied to clipboard
open class OnsRadio(value: Boolean = false, extraValue: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, className: String? = null, init: OnsRadio.() -> Unit? = null) : SimplePanel, BoolFormControl, MutableState<Boolean>

Onsen UI form field radio button component.

Link copied to clipboard
open class OnsRadioGroup(options: List<<Error class: unknown class><String, String>>? = null, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, className: String? = null, init: OnsRadioGroup.() -> Unit? = null) : SimplePanel, StringFormControl, MutableState<String?>

The form field component rendered as a group of OnsenUI radio buttons with the same name attribute.

Link copied to clipboard
open class OnsRadioGroupInput(options: List<<Error class: unknown class><String, String>>? = null, value: String? = null, name: String? = null, className: String? = null, init: OnsRadioGroupInput.() -> Unit? = null) : SimplePanel, GenericFormComponent<String?> , FormInput, MutableState<String?>

The input component rendered as a group of Onsen UI radio buttons with the same name attribute.

Link copied to clipboard
open class OnsRadioInput(value: Boolean = false, inputId: String? = null, className: String? = null, init: OnsRadioInput.() -> Unit? = null) : CheckInput

OnsenUI radio button input component.

Link copied to clipboard
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) : SimplePanel, NumberFormControl, MutableState<Number?>

Onsen UI form field range component.

Link copied to clipboard
open class OnsRangeInput(value: Number? = null, min: Number = 0, max: Number = 100, step: Number = DEFAULT_STEP, inputId: String? = null, className: String? = null, init: OnsRangeInput.() -> Unit? = null) : RangeInput

OnsenUI range input component.

Link copied to clipboard
open class OnsSelect(options: List<<Error class: unknown class><String, String>>? = null, value: String? = null, emptyOption: Boolean = false, multiple: Boolean = false, selectSize: Int? = null, name: String? = null, label: String? = null, rich: Boolean = false, className: String? = null, init: OnsSelect.() -> Unit? = null) : SimplePanel, StringFormControl, MutableState<String?>

Onsen UI form field select component.

Link copied to clipboard
open class OnsSelectInput(options: List<<Error class: unknown class><String, String>>? = null, value: String? = null, emptyOption: Boolean = false, multiple: Boolean = false, selectSize: Int? = null, selectId: String? = null, className: String? = null, init: OnsSelectInput.() -> Unit? = null) : SelectInput

OnsenUI select input component.

Link copied to clipboard
open class OnsSwitch(value: Boolean = false, name: String? = null, label: String? = null, rich: Boolean = false, className: String? = null, init: OnsSwitch.() -> Unit? = null) : SimplePanel, BoolFormControl, MutableState<Boolean>

Onsen UI form field switch component.

Link copied to clipboard
open class OnsSwitchInput(value: Boolean = false, inputId: String? = null, className: String? = null, init: OnsSwitchInput.() -> Unit? = null) : OnsCheckBoxInput

OnsenUI switch input component.

Link copied to clipboard
open class OnsText(type: InputType = InputType.TEXT, value: String? = null, placeholder: String? = null, floatLabel: Boolean? = null, name: String? = null, maxlength: Int? = null, label: String? = null, rich: Boolean = false, className: String? = null, init: OnsText.() -> Unit? = null) : AbstractText

Onsen UI form field text component.

Link copied to clipboard
open class OnsTextInput(type: InputType = InputType.TEXT, value: String? = null, placeholder: String? = null, floatLabel: Boolean? = null, inputId: String? = null, maxlength: Int? = null, className: String? = null, init: OnsTextInput.() -> Unit? = null) : TextInput

OnsenUI text input component.

Functions

Link copied to clipboard
fun Container.onsButton(content: String? = null, rich: Boolean = false, align: Align? = null, icon: String? = null, buttonType: OnsButtonType? = null, large: Boolean? = null, ripple: Boolean? = null, disabled: Boolean? = null, className: String? = null, init: OnsButton.() -> Unit? = null): OnsButton

DSL builder extension function.

Link copied to clipboard
fun Container.onsCheckBox(value: Boolean = false, name: String? = null, label: String? = null, rich: Boolean = false, className: String? = null, init: OnsCheckBox.() -> Unit? = null): OnsCheckBox

DSL builder extension function.

Link copied to clipboard
fun Container.onsCheckBoxInput(value: Boolean = false, inputId: String? = null, className: String? = null, init: OnsCheckBoxInput.() -> Unit? = null): OnsCheckBoxInput

DSL builder extension function.

Link copied to clipboard
fun Container.onsDateTime(value: <Error class: unknown class>? = null, mode: DateTimeMode = DateTimeMode.DATETIME, min: <Error class: unknown class>? = null, max: <Error class: unknown class>? = null, step: Number? = null, name: String? = null, label: String? = null, rich: Boolean = false, className: String? = null, init: OnsDateTime.() -> Unit? = null): OnsDateTime

DSL builder extension function.

Link copied to clipboard
fun Container.onsDateTimeInput(value: <Error class: unknown class>? = null, mode: DateTimeMode = DateTimeMode.DATETIME, min: <Error class: unknown class>? = null, max: <Error class: unknown class>? = null, step: Number? = null, inputId: String? = null, className: String? = null, init: OnsDateTimeInput.() -> Unit? = null): OnsDateTimeInput

DSL builder extension function.

Link copied to clipboard
fun Container.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): OnsNumber

DSL builder extension function.

Link copied to clipboard
fun Container.onsNumberInput(value: Number? = null, min: Number? = null, max: Number? = null, step: Number = DEFAULT_STEP, placeholder: String? = null, floatLabel: Boolean? = null, inputId: String? = null, className: String? = null, init: OnsNumberInput.() -> Unit? = null): OnsNumberInput

DSL builder extension function.

Link copied to clipboard
fun Container.onsRadio(value: Boolean = false, extraValue: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, className: String? = null, init: OnsRadio.() -> Unit? = null): OnsRadio

DSL builder extension function.

Link copied to clipboard
fun Container.onsRadioGroup(options: List<<Error class: unknown class><String, String>>? = null, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, className: String? = null, init: OnsRadioGroup.() -> Unit? = null): OnsRadioGroup

DSL builder extension function.

Link copied to clipboard
fun Container.onsRadioGroupInput(options: List<<Error class: unknown class><String, String>>? = null, value: String? = null, name: String? = null, className: String? = null, init: OnsRadioGroupInput.() -> Unit? = null): OnsRadioGroupInput

DSL builder extension function.

Link copied to clipboard
fun Container.onsRadioInput(value: Boolean = false, inputId: String? = null, className: String? = null, init: OnsRadioInput.() -> Unit? = null): OnsRadioInput

DSL builder extension function.

Link copied to clipboard
fun Container.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): OnsRange

DSL builder extension function.

Link copied to clipboard
fun Container.onsRangeInput(value: Number? = null, min: Number = 0, max: Number = 100, step: Number = DEFAULT_STEP, inputId: String? = null, className: String? = null, init: OnsRangeInput.() -> Unit? = null): OnsRangeInput

DSL builder extension function.

Link copied to clipboard
fun Container.onsSelect(options: List<<Error class: unknown class><String, String>>? = null, value: String? = null, emptyOption: Boolean = false, multiple: Boolean = false, selectSize: Int? = null, name: String? = null, label: String? = null, rich: Boolean = false, className: String? = null, init: OnsSelect.() -> Unit? = null): OnsSelect

DSL builder extension function.

Link copied to clipboard
fun Container.onsSelectInput(options: List<<Error class: unknown class><String, String>>? = null, value: String? = null, emptyOption: Boolean = false, multiple: Boolean = false, selectSize: Int? = null, inputId: String? = null, className: String? = null, init: OnsSelectInput.() -> Unit? = null): OnsSelectInput

DSL builder extension function.

Link copied to clipboard
fun Container.onsSwitch(value: Boolean = false, name: String? = null, label: String? = null, rich: Boolean = false, className: String? = null, init: OnsSwitch.() -> Unit? = null): OnsSwitch

DSL builder extension function.

Link copied to clipboard
fun Container.onsSwitchInput(value: Boolean = false, inputId: String? = null, className: String? = null, init: OnsSwitchInput.() -> Unit? = null): OnsSwitchInput

DSL builder extension function.

Link copied to clipboard
fun Container.onsText(type: InputType = InputType.TEXT, value: String? = null, placeholder: String? = null, floatLabel: Boolean? = null, name: String? = null, maxlength: Int? = null, label: String? = null, rich: Boolean = false, className: String? = null, init: OnsText.() -> Unit? = null): OnsText

DSL builder extension function.

Link copied to clipboard
fun Container.onsTextInput(type: InputType = InputType.TEXT, value: String? = null, placeholder: String? = null, floatLabel: Boolean? = null, inputId: String? = null, maxlength: Int? = null, className: String? = null, init: OnsTextInput.() -> Unit? = null): OnsTextInput

DSL builder extension function.