SplitButton Customization
The SplitButton provides options for customizing the behavior of its popup and the rendering of its popup items. The popup displays the items from the data input. For details on binding primitive and object arrays, see Data Binding.
The component enables you to:
Popup Behavior
Call toggle with true to open or false to close the popup programmatically. Calling toggle does not fire the open or close events.
Set popupSettings to configure the popup. The input supports these options:
animateenables or disables the popup animation. Open and close animations are enabled by default.popupClassapplies CSS classes to the popup.alignsets horizontal alignment toleft,center, orright. The popup defaults to the left in left-to-right layouts and to the right in right-to-left layouts.appendToselects the popup container:root(default),component, or aViewContainerRef.
The following demo sets a CSS class on the popup and enables its animation.
Item Templates
To define a template for every popup item, nest an <ng-template> with the kendoSplitButtonItemTemplate directive inside the SplitButton. The same template renders every item, and let-dataItem gives you access to the current data item.
The following demo renders each popup item in italics.