Switch

org.terminal21.client.components.chakra.Switch
case class Switch(key: String, text: String, defaultChecked: Boolean, isDisabled: Boolean, style: Map[String, Any], checkedV: Option[Boolean]) extends ChakraElement[Switch], HasEventHandler, CanHandleOnChangeEvent[Switch]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Current[Switch]
trait HasStyle[Switch]
trait CEJson
trait UiElement
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def checked: Boolean

Attributes

Definition Classes
def withDefaultChecked(v: Boolean): Switch
def withIsDisabled(v: Boolean): Switch
def withKey(v: String): Switch
override def withStyle(v: Map[String, Any]): Switch

Attributes

Definition Classes
def withText(v: String): Switch

Inherited methods

def current(using session: ConnectedSession): A

Attributes

Inherited from:
Current
def flat: Seq[UiElement]

Attributes

Inherited from:
UiElement

Attributes

Inherited from:
CanHandleOnChangeEvent
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def render()(using session: ConnectedSession): Unit

Attributes

Inherited from:
UiElement
def renderChanges()(using session: ConnectedSession): Unit

Renders any changes for this element and it's children (if any). The element must previously have been added to the session.

Renders any changes for this element and it's children (if any). The element must previously have been added to the session.

Attributes

Inherited from:
UiElement
def withStyle(vs: (String, Any)*): A

Attributes

Inherited from:
HasStyle