2019-07-17 18:46:55 +00:00
|
|
|
`SimpleSelectControl` (component)
|
|
|
|
=================================
|
|
|
|
|
|
|
|
A component for displaying a material styled 'simple' select control.
|
|
|
|
|
|
|
|
Props
|
|
|
|
-----
|
|
|
|
|
|
|
|
### `className`
|
|
|
|
|
|
|
|
- Type: String
|
|
|
|
- Default: null
|
|
|
|
|
|
|
|
Additional class name to style the component.
|
|
|
|
|
|
|
|
### `label`
|
|
|
|
|
|
|
|
- Type: String
|
|
|
|
- Default: null
|
|
|
|
|
|
|
|
A label to use for the main select element.
|
|
|
|
|
|
|
|
### `options`
|
|
|
|
|
|
|
|
- Type: Array
|
|
|
|
- value: String - Input value for this option.
|
|
|
|
- label: String - Label for this option.
|
2019-07-24 00:30:29 +00:00
|
|
|
- disabled: Boolean - Disable the option.
|
2019-07-17 18:46:55 +00:00
|
|
|
- Default: null
|
|
|
|
|
|
|
|
An array of options to use for the dropddown.
|
|
|
|
|
|
|
|
### `onChange`
|
|
|
|
|
|
|
|
- Type: Function
|
|
|
|
- Default: null
|
|
|
|
|
|
|
|
A function that receives the value of the new option that is being selected as input.
|
|
|
|
|
|
|
|
### `value`
|
|
|
|
|
|
|
|
- Type: String
|
|
|
|
- Default: null
|
|
|
|
|
2019-07-24 00:30:29 +00:00
|
|
|
The currently value of the select element.
|
|
|
|
|
2019-08-08 13:10:47 +00:00
|
|
|
### `help`
|
|
|
|
|
|
|
|
- Type: One of type: string, node
|
|
|
|
- Default: null
|
|
|
|
|
|
|
|
If this property is added, a help text will be generated using help property as the content.
|
|
|
|
|