Kvaser CanKing GUI Extensions SDK v7.4.0
Kvaser CanKing GUI Extensions SDK / controls / SelectControlProps
Interface: SelectControlProps
Properties of the SelectControl React component.
Properties
disabled?
optionaldisabled:boolean
Set to true to disable this control.
fullWidth?
optionalfullWidth:boolean
Set to true to expand this control to use the full width of its parent.
helperText?
optionalhelperText:string
A helper text that will be displayed underneath the select control.
id
id:
string
The component id.
label
label:
string
A label text that will be displayed in front of the select control.
margin?
optionalmargin:"none"|"normal"|"dense"
Margins between controls inside this control.
minWidth?
optionalminWidth:string|number
The min width of this control.
onChange()
onChange: (
value) =>void
Callback that will be called when a new option has been selected.
Parameters
value
The new selected value.
number | ""
Returns
void
options
options:
SelectOption[] |Map<string,SelectOption[]>
The options to be available inside the select control.
prefixTextWithValue?
optionalprefixTextWithValue:boolean
Set to true to display each option as ‘
required?
optionalrequired:boolean
Set to true if the value of this control is required.
showLabel?
optionalshowLabel:boolean
Set to true to display the label.
size?
optionalsize:"small"|"medium"
The component size.
value
value:
number|""
Value of the selected option or ‘’ if no option has been selected.