woocommerce/plugins/woocommerce-admin/docs/components/packages/simple-select-control.md

54 lines
951 B
Markdown

`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.
- disabled: Boolean - Disable the option.
- 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
The currently value of the select element.
### `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.