Props

io.github.nafg.scalajs.facades.mui.base.Select.Props
class Props extends PropTypes

Attributes

Graph
Supertypes
trait PropTypes
class Object
trait Matchable
class Any

Members list

Type members

Inherited classlikes

object dyn extends Dynamic

Attributes

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

Value members

Concrete methods

def areOptionsEqual: Prop[Any => Any]

A function used to determine if two options' values are equal. By default, reference equality is used.

A function used to determine if two options' values are equal. By default, reference equality is used.

There is a performance impact when using the areOptionsEqual prop (proportional to the number of options). Therefore, it's recommented to use the default reference equality comparison whenever possible.

Attributes

def autoComplete: Prop[String]

This prop helps users to fill forms faster, especially on mobile devices. The name can be confusing, as it's more like an autofill. You can learn more about it following the specification.

This prop helps users to fill forms faster, especially on mobile devices. The name can be confusing, as it's more like an autofill. You can learn more about it following the specification.

Attributes

def autoFocus: Prop[Boolean]

If true, the select element is focused during the first mount

If true, the select element is focused during the first mount

Attributes

def defaultListboxOpen: Prop[Boolean]

If true, the select will be initially open.

If true, the select will be initially open.

Attributes

def defaultValue: Prop[Any]

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

The default selected 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 getOptionAsString: Prop[Any => Any]

A function used to convert the option label to a string. It's useful when labels are elements and need to be converted to plain text to enable navigation using character keys on a keyboard.

A function used to convert the option label to a string. It's useful when labels are elements and need to be converted to plain text to enable navigation using character keys on a keyboard.

Attributes

def getSerializedValue: Prop[Any => Any]

A function to convert the currently selected value to a string. Used to set a value of a hidden input associated with the select, so that the selected value can be posted with a form.

A function to convert the currently selected value to a string. Used to set a value of a hidden input associated with the select, so that the selected value can be posted with a form.

Attributes

def listboxId: Prop[String]

id attribute of the listbox element.

id attribute of the listbox element.

Attributes

def listboxOpen: Prop[Boolean]

Controls the open state of the select's listbox.

Controls the open state of the select's listbox.

Attributes

def multiple: Prop[Boolean]

If true, selecting multiple values is allowed. This affects the type of the value, defaultValue, and onChange props.

If true, selecting multiple values is allowed. This affects the type of the value, defaultValue, and onChange props.

Attributes

def name: Prop[String]

Name of the element. For example used by the server to identify the fields in form submits. If the name is provided, the component will render a hidden input element that can be submitted to a server.

Name of the element. For example used by the server to identify the fields in form submits. If the name is provided, the component will render a hidden input element that can be submitted to a server.

Attributes

def onChange: Prop[Any => Any]

Callback fired when an option is selected.

Callback fired when an option is selected.

Attributes

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

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

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

Attributes

def placeholder: Prop[VdomNode]

Text to show when there is no selected value.

Text to show when there is no selected value.

Attributes

def renderValue: Prop[Any => Any]

Function that customizes the rendering of the selected value.

Function that customizes the rendering of the selected value.

Attributes

def required: Prop[Boolean]

If true, the Select cannot be empty when submitting form.

If true, the Select cannot be empty when submitting form.

Attributes

def slotProps: Prop[Object]

The props used for each slot inside the Input.

The props used for each slot inside the Input.

Attributes

def slots: Prop[Object]

The components used for each slot inside the Select. Either a string to use a HTML element or a component.

The components used for each slot inside the Select. Either a string to use a HTML element or a component.

Attributes

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

The selected value. Set to null to deselect all options.

The selected value. Set to null to deselect all options.

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