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

<init>

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

Creates a form field switch component.

Parameters

value - switch input value

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

classes - a set of CSS class names

init - an initializer extension function

Constructor
Creates a form field switch component.