Properties of the CanIdentifierControl React component.

interface CanIdentifierControlProps {
    canIdentifier: string;
    canIdentifierType: canIdentifierType;
    collapsed?: boolean;
    collapsedChange?: (value: boolean) => void;
    collapsible?: boolean;
    disabled?: boolean;
    disableSelectMessageButton?: boolean;
    disableSelectSignalButton?: boolean;
    hideSection?: boolean;
    hideSelectMessageButton?: boolean;
    onCanIdentifierChange: (
        identifier: string,
        idType: canIdentifierType,
    ) => void;
    onErrorsChange?: (errors: boolean) => void;
    showSelectMessageDialogChange?: (value: boolean) => void;
    showSelectSignalButton?: boolean;
    showSelectSignalDialogChange?: (value: boolean) => void;
}

Properties

canIdentifier: string

The current CAN identifier.

canIdentifierType: canIdentifierType

The current CAN identifier type, 'extended or 'standard'.

collapsed?: boolean

Current collapse state of the SectionControl.

collapsedChange?: (value: boolean) => void

Callback that will be called when collapse state has changed.

Type declaration

    • (value: boolean): void
    • Parameters

      • value: boolean

        The new collapse state.

      Returns void

collapsible?: boolean

Set to true if the SectionControl should be collapsible, ignored if hideSectionControl is true.

disabled?: boolean

Set to true to disable this control.

disableSelectMessageButton?: boolean

Set to true if the select message button should be disabled.

disableSelectSignalButton?: boolean

Set to true if the select signal button should be disabled.

hideSection?: boolean

Set to true if this control shouldn't be encapsulated inside a SectionControl.

hideSelectMessageButton?: boolean

Set to true if the select message button shouldn't be visible.

onCanIdentifierChange: (identifier: string, idType: canIdentifierType) => void

Callback that will be called when the CAN identifier has changed.

Type declaration

    • (identifier: string, idType: canIdentifierType): void
    • Parameters

      • identifier: string

        The new CAN identifier.

      • idType: canIdentifierType

        The new CAN identifier type.

      Returns void

onErrorsChange?: (errors: boolean) => void

Callback that will be called when the errors state has changed.

Type declaration

    • (errors: boolean): void
    • Parameters

      • errors: boolean

        The new errors state.

      Returns void

showSelectMessageDialogChange?: (value: boolean) => void

Callback that will be called when the select message dialog has been opened or closed.

Type declaration

    • (value: boolean): void
    • Parameters

      • value: boolean

        The new show select message dialog state.

      Returns void

showSelectSignalButton?: boolean

Set to true if the select signal button shouldn't be visible.

showSelectSignalDialogChange?: (value: boolean) => void

Callback that will be called when the select signal dialog has been opened or closed.

Type declaration

    • (value: boolean): void
    • Parameters

      • value: boolean

        The new show select signal dialog state.

      Returns void