Switch

open class Switch(value: Boolean = false, name: String? = null, labelFirst: Boolean = false, label: String? = null, rich: Boolean = false, init: Switch.() -> Unit? = null)

The form field Bootstrap checkbox component rendered as a switch.

Parameters

value

selection state

name

the name of the input element

labelFirst

render the label as the first child

label

label text bound to the input element

rich

determines if label can contain HTML code

init

an initializer extension function

Constructors

Link copied to clipboard
constructor(value: Boolean = false, name: String? = null, labelFirst: Boolean = false, label: String? = null, rich: Boolean = false, init: Switch.() -> Unit? = null)

Functions

Link copied to clipboard
open fun buildClassSet(classSetBuilder: <Error class: unknown class>)