Kvaser CanKing GUI Extensions SDK v7.6.1


Kvaser CanKing GUI Extensions SDK / controls / SelectControlProps

Interface: SelectControlProps

Properties of the SelectControl React component.

Properties

disabled?

optional disabled?: boolean

Set to true to disable this control.


fullWidth?

optional fullWidth?: boolean

Set to true to expand this control to use the full width of its parent.


helperText?

optional helperText?: 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?

optional margin?: "none" | "normal" | "dense"

Margins between controls inside this control.


minWidth?

optional minWidth?: 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

number | ""

The new selected value.

Returns

void


options

options: SelectOption[] | Map<string, SelectOption[]>

The options to be available inside the select control.


prefixTextWithValue?

optional prefixTextWithValue?: boolean

Set to true to display each option as ‘ - ’, otherwise each option will be displayed with its displayText only.


required?

optional required?: boolean

Set to true if the value of this control is required.


showLabel?

optional showLabel?: boolean

Set to true to display the label.


size?

optional size?: "small" | "medium"

The component size.


value

value: number | ""

Value of the selected option or ‘’ if no option has been selected.