Kvaser CanKing GUI Extensions SDK - v7.3.0
    Preparing search index...

    Interface DropdownButtonTextItemsProps

    Properties of the DropdownButtonTextItems React component.

    interface DropdownButtonTextItemsProps {
        items: { key: string; text: string }[];
        onClose?: () => void;
        onSelect: (itemKey: string, itemText?: string) => void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    items: { key: string; text: string }[]

    The items that will be displayed in the drop down control. Each item has a unique key and a display text.

    onClose?: () => void

    Callback that is called when the drop down menu is closed.

    onSelect: (itemKey: string, itemText?: string) => void

    Callback that is called when the user selects one of the drop down items.

    Type Declaration

      • (itemKey: string, itemText?: string): void
      • Parameters

        • itemKey: string

          The key of the selected item.

        • OptionalitemText: string

        Returns void