Module: Select

MDCSelect component implemented by react component.

Parameters:
Name Type Description
props Object
Properties
Name Type Attributes Description
items Array.<Object> | Array.<string>

The list of options.

itemsValueAttr string <optional>

The attribute name of the options to hold a value. If not specified, index of items is used.

itemsTextAttr string <optional>

The attribute name of the options to show contents of the option. If not specified, the return value of item.toString() is used.

value string <optional>

The value of props.itemsValueAttr attributes of the selected option.

variation string <optional>

The variation of the select. Supported variations are 'filled'(default) and 'outlined'.

label string <optional>

The label text of the select.

className string <optional>

The class name that is added to the root element.

required boolean <optional>

Specifies true if the select is required. Default to false.

disabled boolean <optional>

Specifies true if you want to disable the select. Default to false.

name string <optional>

Specifying a value for this property, the component generate an <input type="hidden" name="{value of property}"> elelment. A value of the element is synchronized with value of Select, you can use the component as-is HTML form.

mdcSelectRef React.MutableRefObject <optional>

MutableRefObject which bind an MDCSelect instance to.

onChange EventHandler <optional>

Specifies event handler that is called when a option has been selected.

Source:
Returns:
Type
DetailedReactHTMLElement