DropDownButton Customization
The DropDownButton provides options for setting the behavior of its popup and popup items. The popup displays the items from the items property. For details on binding strings or objects, see Data Binding.
The component enables you to:
Popup Behavior
To open or close the popup programmatically, use the opened prop. To configure the popup settings, use the popupSettings property. The prop supports the following options:
animate—Enables or disables the popup animation. Open and close animations are enabled by default.popupClass—Applies CSS classes to the popup.anchorAlign—Sets the pivot point of the popup anchor.popupAlign—Sets the pivot point of the DropDownButton popup.
The following demo disables the popup animation and applies a custom CSS class.
Item Templates
The DropDownButton allows you to override how its popup items are rendered. To replace the content of all items with a component, set the item property. For callback-based or component-based rendering, use itemRender. To customize only one item, set its render property.
The following demo uses itemRender to customize every popup item.