Switch

open class Switch(value: Boolean = false, name: String? = null, 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

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
fun Switch(value: Boolean = false, name: String? = null, label: String? = null, rich: Boolean = false, init: Switch.() -> Unit? = null)

Functions

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