Props

io.github.nafg.scalajs.facades.mui.SwitchBase$.Props
class Props extends PropTypes

Attributes

Graph
Supertypes
trait PropTypes
class Object
trait Matchable
class Any

Members list

Concise view

Type members

Inherited classlikes

object dyn extends Dynamic

Attributes

Inherited from:
PropTypes
Graph
Supertypes
trait Dynamic
class Object
trait Matchable
class Any

Value members

Concrete methods

def `type`: Prop[String]

The input component prop type.

The input component prop type.

Attributes

def autoFocus: Prop[Boolean]

If true, the input element will be focused during the first mount.

If true, the input element will be focused during the first mount.

Attributes

def checked: Prop[Boolean]

If true, the component is checked.

If true, the component is checked.

Attributes

def checkedIcon: Prop[VdomNode]

The icon to display when the component is checked.

The icon to display when the component is checked.

Attributes

def classes: Prop[Object]

Override or extend the styles applied to the component. See CSS API below for more details.

Override or extend the styles applied to the component. See CSS API below for more details.

Attributes

def disabled: Prop[Boolean]

If true, the switch will be disabled.

If true, the switch will be disabled.

Attributes

def icon: Prop[VdomNode]

The icon to display when the component is unchecked.

The icon to display when the component is unchecked.

Attributes

def id: Prop[String]

The id of the input element.

The id of the input element.

Attributes

def inputProps: Prop[Object]

Attributes applied to the input element.

Attributes applied to the input element.

Attributes

def inputRef: Prop[Any]

Pass a ref to the input element.

Pass a ref to the input element.

Attributes

def name: Prop[String]
def onChange: Prop[Any => Any]

Callback fired when the state is changed.

Callback fired when the state is changed.

Attributes

{object}

event The event source of the callback. You can pull out the new checked state by accessing event.target.checked (boolean).

def onClick: Prop[ReactMouseEventFromHtml => Callback]
def readOnly: Prop[Boolean]

It prevents the user from changing the value of the field (not from interacting with the field).

It prevents the user from changing the value of the field (not from interacting with the field).

Attributes

def required: Prop[Boolean]

If true, the input element will be required.

If true, the input element will be required.

Attributes

def style: Prop[Object]
def value: Prop[Any]

The value of the component.

The value of the component.

Attributes

Inherited methods

def of[A : Writer](implicit evidence$1: Writer[A], name: Name): Prop[A]

Attributes

Inherited from:
PropTypes

Inherited fields

val key: Prop[Key]

Attributes

Inherited from:
PropTypes