Props

io.github.nafg.scalajs.facades.mui.SelectInput.Props
class Props extends WithChildren[VdomNode]

Attributes

Graph
Supertypes
trait WithChildren[VdomNode]
trait PropTypes
class Object
trait Matchable
class Any

Members list

Type members

Classlikes

object variant extends Prop[String]

The variant to use.

The variant to use.

Attributes

Supertypes
class Prop[String]
class Object
trait Matchable
class Any
Self type
variant.type

Inherited classlikes

object dyn extends Dynamic

Attributes

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

Value members

Concrete methods

def IconComponent: Prop[ElementType]

The icon that displays the arrow.

The icon that displays the arrow.

Attributes

def SelectDisplayProps: Prop[Object]

Props applied to the clickable div element.

Props applied to the clickable div element.

Attributes

def autoWidth: Prop[Boolean]

If true, the width of the popover will automatically be set according to the items inside the menu, otherwise it will be at least the width of the select input.

If true, the width of the popover will automatically be set according to the items inside the menu, otherwise it will be at least the width of the select input.

Attributes

def children: Prop[VdomNode]

The option elements to populate the select with. Can be some <MenuItem> elements.

The option elements to populate the select with. Can be some <MenuItem> elements.

Attributes

def className: Prop[String]

The CSS class name of the select element.

The CSS class name of the select element.

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 defaultOpen: Prop[Boolean]

If true, the component is toggled on mount. Use when the component open state is not controlled. You can only use it when the native prop is false (default).

If true, the component is toggled on mount. Use when the component open state is not controlled. You can only use it when the native prop is false (default).

Attributes

def defaultValue: Prop[Any]

The default value. Use when the component is not controlled.

The default value. Use when the component is not controlled.

Attributes

def disabled: Prop[Boolean]

If true, the select is disabled.

If true, the select is disabled.

Attributes

def displayEmpty: Prop[Boolean]

If true, the selected item is displayed even if its value is empty.

If true, the selected item is displayed even if its value is empty.

Attributes

def error: Prop[Boolean]

If true, the select input will indicate an error.

If true, the select input will indicate an error.

Attributes

def inputRef: Prop[Any]

Imperative handle implementing { value: T, node: HTMLElement, focus(): void } Equivalent to ref

Imperative handle implementing { value: T, node: HTMLElement, focus(): void } Equivalent to ref

Attributes

def labelId: Prop[String]

The ID of an element that acts as an additional label. The Select will be labelled by the additional label and the selected value.

The ID of an element that acts as an additional label. The Select will be labelled by the additional label and the selected value.

Attributes

def multiple: Prop[Boolean]

If true, value must be an array and the menu will support multiple selections.

If true, value must be an array and the menu will support multiple selections.

Attributes

def name: Prop[String]

Name attribute of the select or hidden input element.

Name attribute of the select or hidden input element.

Attributes

def onChange: Prop[Any => Any]

Callback fired when a menu item is selected.

Callback fired when a menu item is selected.

Value parameters

{object}

[child] The react element that was selected.

Attributes

def onClick: Prop[ReactMouseEventFromHtml => Callback]
def onClose: Prop[Any => Any]

Callback fired when the component requests to be closed. Use in controlled mode (see open).

Callback fired when the component requests to be closed. Use in controlled mode (see open).

Value parameters

{object}

event The event source of the callback.

Attributes

def onOpen: Prop[Any => Any]

Callback fired when the component requests to be opened. Use in controlled mode (see open).

Callback fired when the component requests to be opened. Use in controlled mode (see open).

Value parameters

{object}

event The event source of the callback.

Attributes

def open: Prop[Boolean]

If true, the component is shown.

If true, the component is shown.

Attributes

def renderValue: Prop[Any => Any]

Render the selected value.

Render the selected value.

Value parameters

{any}

value The value provided to the component.

Attributes

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

The input value.

The input value.

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