Kvaser CanKing GUI Extensions SDK v7.4.0
Kvaser CanKing GUI Extensions SDK / controls / CanIdentifierControlProps
Interface: CanIdentifierControlProps
Properties of the CanIdentifierControl React component.
Properties
canIdentifier
canIdentifier:
string
The current CAN identifier.
canIdentifierType
canIdentifierType:
canIdentifierType
The current CAN identifier type, ‘extended or ‘standard’.
collapsed?
optionalcollapsed:boolean
Current collapse state of the SectionControl.
collapsedChange()?
optionalcollapsedChange: (value) =>void
Callback that will be called when collapse state has changed.
Parameters
value
boolean
The new collapse state.
Returns
void
collapsible?
optionalcollapsible:boolean
Set to true if the SectionControl should be collapsible, ignored if hideSectionControl is true.
disabled?
optionaldisabled:boolean
Set to true to disable this control.
fullScreen?
optionalfullScreen:boolean
Set to true if the select message and select signal dialogs should be full screen dialogs.
hideSection?
optionalhideSection:boolean
Set to true if this control shouldn’t be encapsulated inside a SectionControl.
nodeIdentifier?
optionalnodeIdentifier:string
Identifier of the node that will be used to filter messages and signals in the select dialogs. Leave undefined if no filtering should be done.
onCanIdentifierChange()
onCanIdentifierChange: (
identifier,idType,sourceId) =>void
Callback that will be called when the CAN identifier has changed.
Parameters
identifier
string
The new CAN identifier.
idType
The new CAN identifier type.
sourceId
string
The source identifier of the selected message. Could be undefined if no (any) source is selected.
Returns
void
onErrorsChange()?
optionalonErrorsChange: (errors) =>void
Callback that will be called when the errors state has changed.
Parameters
errors
boolean
The new errors state.
Returns
void
onSignalChange()?
optionalonSignalChange: (identifier,idType,signal,sourceId) =>void
Callback that will be called when the settings have changed after selecting a signal. If this property is set, then the onCanIdentifierChange callback will not be called.
Parameters
identifier
string
The new CAN identifier.
idType
The new CAN identifier type.
signal
The new signal or undefined if no signal is selected.
sourceId
string
The source identifier of the selected signal. Could be undefined if no (any) source is selected.
Returns
void
parentDialogTitle?
optionalparentDialogTitle:string
Name of a parent dialog, if any, that is used as the parent for the select message and select signal dialogs. Leave undefined if there is no parent dialog.
selectedSourceId?
optionalselectedSourceId:string
The source identifier of the selected message or signal.
showSource?
optionalshowSource:boolean
Set to true if the source field should be shown. Default is false.
sourceIdFilter?
optionalsourceIdFilter:string
The source identifier that will be used to filter messages in the select dialog. Leave undefined if no filtering should be done.