[**Kvaser CanKing GUI Extensions SDK v7.5.1**](../../README.md)

***

[Kvaser CanKing GUI Extensions SDK](../../modules.md) / [controls](../README.md) / DropdownButtonTextItemsProps

# Interface: DropdownButtonTextItemsProps

Properties of the DropdownButtonTextItems React component.

## Extends

- [`DropdownButtonChildrenProps`](DropdownButtonChildrenProps.md)

## Properties

### items

> **items**: `object`[]

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

#### key

> **key**: `string`

#### text

> **text**: `string`

***

### onClose()?

> `optional` **onClose**: () => `void`

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

#### Returns

`void`

#### Inherited from

[`DropdownButtonChildrenProps`](DropdownButtonChildrenProps.md).[`onClose`](DropdownButtonChildrenProps.md#onclose)

***

### onSelect()

> **onSelect**: (`itemKey`, `itemText?`) => `void`

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

#### Parameters

##### itemKey

`string`

The key of the selected item.

##### itemText?

`string`

#### Returns

`void`
