kvision / pl.treksoft.kvision.onsenui.form

Package pl.treksoft.kvision.onsenui.form

Onsen UI form components.

Types

(js)

DateTimeMode

Data/time input modes.

enum class DateTimeMode
(js)

OnsButton

A button component.

open class OnsButton : CustomTag
(js)

OnsButtonType

Onsen UI button types.

enum class OnsButtonType
(js)

OnsCheckBox

Onsen UI form field checkbox component.

open class OnsCheckBox : SimplePanel, BoolFormControl, ObservableState<Boolean>
(js)

OnsCheckBoxInput

OnsenUI checkbox input component.

open class OnsCheckBoxInput : CheckInput
(js)

OnsDateTime

Onsen UI form field date/time component.

open class OnsDateTime : SimplePanel, DateFormControl, ObservableState<Date?>
(js)

OnsDateTimeInput

OnsenUI date/time input component.

open class OnsDateTimeInput : Widget, FormInput, ObservableState<Date?>
(js)

OnsNumber

Onsen UI form field number component.

open class OnsNumber : SimplePanel, NumberFormControl, ObservableState<Number?>
(js)

OnsNumberInput

OnsenUI number input component.

open class OnsNumberInput : Widget, FormInput, ObservableState<Number?>
(js)

OnsRadio

Onsen UI form field radio button component.

open class OnsRadio : SimplePanel, BoolFormControl, ObservableState<Boolean>
(js)

OnsRadioGroup

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

open class OnsRadioGroup : SimplePanel, StringFormControl, ObservableState<String?>
(js)

OnsRadioGroupInput

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

open class OnsRadioGroupInput : SimplePanel, FormInput, ObservableState<String?>
(js)

OnsRadioInput

OnsenUI radio button input component.

open class OnsRadioInput : CheckInput
(js)

OnsRange

Onsen UI form field range component.

open class OnsRange : SimplePanel, NumberFormControl, ObservableState<Number?>
(js)

OnsRangeInput

OnsenUI range input component.

open class OnsRangeInput : RangeInput
(js)

OnsSelect

Onsen UI form field select component.

open class OnsSelect : SimplePanel, StringFormControl, ObservableState<String?>
(js)

OnsSelectInput

OnsenUI select input component.

open class OnsSelectInput : SimpleSelectInput
(js)

OnsSwitch

Onsen UI form field switch component.

open class OnsSwitch : SimplePanel, BoolFormControl, ObservableState<Boolean>
(js)

OnsSwitchInput

OnsenUI switch input component.

open class OnsSwitchInput : OnsCheckBoxInput
(js)

OnsText

Onsen UI form field text component.

open class OnsText : AbstractText
(js)

OnsTextInput

OnsenUI text input component.

open class OnsTextInput : TextInput

Functions

(js)

onsButton

DSL builder extension function.

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, classes: Set<String>? = null, className: String? = null, init: (OnsButton.() -> Unit)? = null): OnsButton
(js)

onsCheckBox

DSL builder extension function.

fun Container.onsCheckBox(value: Boolean = false, name: String? = null, label: String? = null, rich: Boolean = false, classes: Set<String>? = null, className: String? = null, init: (OnsCheckBox.() -> Unit)? = null): OnsCheckBox
(js)

onsCheckBoxInput

DSL builder extension function.

fun Container.onsCheckBoxInput(value: Boolean = false, inputId: String? = null, classes: Set<String>? = null, className: String? = null, init: (OnsCheckBoxInput.() -> Unit)? = null): OnsCheckBoxInput
(js)

onsDateTime

DSL builder extension function.

fun Container.onsDateTime(value: Date? = null, mode: DateTimeMode = DateTimeMode.DATETIME, min: Date? = null, max: Date? = null, step: Number? = null, name: String? = null, label: String? = null, rich: Boolean = false, classes: Set<String>? = null, className: String? = null, init: (OnsDateTime.() -> Unit)? = null): OnsDateTime
(js)

onsDateTimeInput

DSL builder extension function.

fun Container.onsDateTimeInput(value: Date? = null, mode: DateTimeMode = DateTimeMode.DATETIME, min: Date? = null, max: Date? = null, step: Number? = null, inputId: String? = null, classes: Set<String>? = null, className: String? = null, init: (OnsDateTimeInput.() -> Unit)? = null): OnsDateTimeInput
(js)

onsNumber

DSL builder extension function.

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, classes: Set<String>? = null, className: String? = null, init: (OnsNumber.() -> Unit)? = null): OnsNumber
(js)

onsNumberInput

DSL builder extension function.

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, classes: Set<String>? = null, className: String? = null, init: (OnsNumberInput.() -> Unit)? = null): OnsNumberInput
(js)

onsRadio

DSL builder extension function.

fun Container.onsRadio(value: Boolean = false, extraValue: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, classes: Set<String>? = null, className: String? = null, init: (OnsRadio.() -> Unit)? = null): OnsRadio
(js)

onsRadioGroup

DSL builder extension function.

fun Container.onsRadioGroup(options: List<StringPair>? = null, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, classes: Set<String>? = null, className: String? = null, init: (OnsRadioGroup.() -> Unit)? = null): OnsRadioGroup
(js)

onsRadioGroupInput

DSL builder extension function.

fun Container.onsRadioGroupInput(options: List<StringPair>? = null, value: String? = null, name: String? = null, classes: Set<String>? = null, className: String? = null, init: (OnsRadioGroupInput.() -> Unit)? = null): OnsRadioGroupInput
(js)

onsRadioInput

DSL builder extension function.

fun Container.onsRadioInput(value: Boolean = false, inputId: String? = null, classes: Set<String>? = null, className: String? = null, init: (OnsRadioInput.() -> Unit)? = null): OnsRadioInput
(js)

onsRange

DSL builder extension function.

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, classes: Set<String>? = null, className: String? = null, init: (OnsRange.() -> Unit)? = null): OnsRange
(js)

onsRangeInput

DSL builder extension function.

fun Container.onsRangeInput(value: Number? = null, min: Number = 0, max: Number = 100, step: Number = DEFAULT_STEP, inputId: String? = null, classes: Set<String>? = null, className: String? = null, init: (OnsRangeInput.() -> Unit)? = null): OnsRangeInput
(js)

onsSelect

DSL builder extension function.

fun Container.onsSelect(options: List<StringPair>? = null, value: String? = null, emptyOption: Boolean = false, multiple: Boolean = false, selectSize: Int? = null, name: String? = null, label: String? = null, rich: Boolean = false, classes: Set<String>? = null, className: String? = null, init: (OnsSelect.() -> Unit)? = null): OnsSelect
(js)

onsSelectInput

DSL builder extension function.

fun Container.onsSelectInput(options: List<StringPair>? = null, value: String? = null, emptyOption: Boolean = false, multiple: Boolean = false, selectSize: Int? = null, inputId: String? = null, classes: Set<String>? = null, className: String? = null, init: (OnsSelectInput.() -> Unit)? = null): OnsSelectInput
(js)

onsSwitch

DSL builder extension function.

fun Container.onsSwitch(value: Boolean = false, name: String? = null, label: String? = null, rich: Boolean = false, classes: Set<String>? = null, className: String? = null, init: (OnsSwitch.() -> Unit)? = null): OnsSwitch
(js)

onsSwitchInput

DSL builder extension function.

fun Container.onsSwitchInput(value: Boolean = false, inputId: String? = null, classes: Set<String>? = null, className: String? = null, init: (OnsSwitchInput.() -> Unit)? = null): OnsSwitchInput
(js)

onsText

DSL builder extension function.

fun Container.onsText(type: TextInputType = TextInputType.TEXT, value: String? = null, placeholder: String? = null, floatLabel: Boolean? = null, name: String? = null, label: String? = null, rich: Boolean = false, classes: Set<String>? = null, className: String? = null, init: (OnsText.() -> Unit)? = null): OnsText
(js)

onsTextInput

DSL builder extension function.

fun Container.onsTextInput(type: TextInputType = TextInputType.TEXT, value: String? = null, placeholder: String? = null, floatLabel: Boolean? = null, inputId: String? = null, classes: Set<String>? = null, className: String? = null, init: (OnsTextInput.() -> Unit)? = null): OnsTextInput