The following example demonstrates how to bind the SplitButton to an array of strings.
When the SplitButton is bound to an array of objects, the component extracts the text value from the data items and, in this way, sets the text of the items in the popup. If the text field in the data objects is named
text, the component gets its value automatically. However, if the name of the property in the data source is different—for example,
actionText—you have to set it to the
textField property of the SplitButton.
For a list of all fields the items model uses, refer to the article on the