SplitButton Data BindingPremium
The SplitButton enables you to bind its popup to an array of strings or an array of objects through the items prop. Alternatively, you can populate the popup with SplitButtonItem child components.
Arrays of Primitive Data
The following example demonstrates how to bind the SplitButton to an array of strings.
Arrays of Complex Data
For object data, the SplitButton displays the text field of each item by default. To use another field, set textField to the name of the field. The configured textField takes precedence over text.
Data items can also set disabled, icon, svgIcon, iconClass, imageUrl, and render. For the complete list of item fields, see ButtonItem.
To customize the popup item content, see Item Templates.
The following example demonstrates how to bind the SplitButton to an array of objects with custom textField.
Child Components
The following example demonstrates how to use SplitButtonItem child components to populate the popup items instead of an items array.