DropDown
Overview
Field for selecting an option from a possible list
Example : Default usage
import { DropDown } from '@ska-telescope/ska-gui-components';
...
<DropDown label="DropDown Label" options={DROP_DOWN_OPTIONS} testId="testId" value={DROP_DOWN_VALUE} />
Constants
- header:
“Constant”, “Values”, “Usage”
“LABEL_POSITION”, “Contained, Top, Bottom, Start, End”, “Allows for the positioning of the label”
{ label: string; value: string | number; disabled: boolean }
Property |
Type |
|||
|---|---|---|---|---|
label |
string |
Test that is presented to the user |
||
value |
string | number |
Value that is used when the option is selected |
||
disabled |
boolean |
No |
false |
Indicates if the option is enabled or disabled. If missing, enabled is assumed |
Testing Identifier
Provided by the property testId