Properties of the DropdownButtonTextItems React component.

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

Hierarchy (View Summary)

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