# DropDownButton Data Binding

The DropDownButton enables you to bind its popup to an array of strings or an array of objects through the [`items`](https://www.telerik.com/kendo-react-ui/components/buttons/api/dropdownbuttonprops#items) prop. Alternatively, you can declare the popup items as [`DropDownButtonItem`](https://www.telerik.com/kendo-react-ui/components/buttons/api/dropdownbuttonitemprops) child components.

## Arrays of Primitive Data

The following example demonstrates how to bind the DropDownButton to an array of strings.

[Demo Source](https://demos.telerik.com/kendo-react-ui/buttons/dropdownbutton/data-binding/strings/func/source.txt)

## Arrays of Complex Data

When the DropDownButton is bound to complex data (objects), the component displays the [`text`](https://www.telerik.com/kendo-react-ui/components/buttons/api/buttonitem#text) field of each item when it is defined. Otherwise, set [`textField`](https://www.telerik.com/kendo-react-ui/components/buttons/api/dropdownbuttonprops#textfield) to the name of the field that contains the display text. If an object has both `text` and the configured field, `text` takes precedence.

Data items can also set `disabled`, `icon`, `svgIcon`, `iconClass`, `imageUrl`, and `render`. For the complete list of item fields, see [`ButtonItem`](https://www.telerik.com/kendo-react-ui/components/buttons/api/buttonitem).

> To customize the popup item content, see [Item Templates](https://www.telerik.com/kendo-react-ui/components/buttons/dropdownbutton/customization#item-templates).

The following example demonstrates how to bind the DropDownButton to object data.

[Demo Source](https://demos.telerik.com/kendo-react-ui/buttons/dropdownbutton/data-binding/objects/func/source.txt)

## Child Components

Use [`DropDownButtonItem`](https://www.telerik.com/kendo-react-ui/components/buttons/api/dropdownbuttonitemprops) child components when you want to declare popup items as children instead of supplying an array through `items`.

The following example demonstrates how to use the `DropDownButtonItem` child components to populate the popup items.

[Demo Source](https://demos.telerik.com/kendo-react-ui/buttons/dropdownbutton/data-binding/child/func/source.txt)

## Suggested Links

* [DropDownButton API Reference](https://www.telerik.com/kendo-react-ui/components/buttons/api/dropdownbuttonprops)
* [DropDownButtonItem API Reference](https://www.telerik.com/kendo-react-ui/components/buttons/api/dropdownbuttonitemprops)
* [ButtonItem Model API Reference](https://www.telerik.com/kendo-react-ui/components/buttons/api/buttonitem)
