Properties of the CanChannelSelectControl React component.

interface CanChannelSelectControlProps {
    channelIdentifier: string;
    collapsed?: boolean;
    collapsedChange?: (value: boolean) => void;
    collapsible?: boolean;
    disabled?: boolean;
    hideSectionControl?: boolean;
    hideSilentChannels?: boolean;
    onChannelIdentifierChange: (
        identifier: string,
        canFdSupport: boolean,
    ) => void;
}

Properties

channelIdentifier: string

Identifier of the selected channel.

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.

hideSectionControl?: boolean

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

hideSilentChannels?: boolean

Set to true to hide all silent channels e.g., when the control is used for selecting output channel.

onChannelIdentifierChange: (identifier: string, canFdSupport: boolean) => void

Callback that will be called when a new channel has been selected.

Type declaration

    • (identifier: string, canFdSupport: boolean): void
    • Parameters

      • identifier: string

        The new channel identifier.

      • canFdSupport: boolean

        True if the new CAN channel supports CAN-FD.

      Returns void