DropDownButtonModel
23 Sep 20252 minutes to read
Interface for a class DropDownButton
Properties
beforeClose EmitType<BeforeOpenCloseMenuEventArgs>
Triggers before closing the DropDownButton popup.
beforeItemRender EmitType<MenuEventArgs>
Triggers while rendering each Popup item of DropDownButton.
beforeOpen EmitType<BeforeOpenCloseMenuEventArgs>
Triggers before opening the DropDownButton popup.
close EmitType<OpenCloseMenuEventArgs>
Triggers while closing the DropDownButton popup.
created EmitType<Event>
Triggers once the component rendering is completed.
open EmitType<OpenCloseMenuEventArgs>
Triggers while opening the DropDownButton popup.
select EmitType<MenuEventArgs>
Triggers while selecting action item in DropDownButton popup.
animationSettings DropDownMenuAnimationSettingsModel
Specifies the animation settings for opening the sub menu in the DropDownMenu.
The settings control the duration, easing, and effect of the animation applied when the sub menu opens.
closeActionEvents string
Specifies the event to close the DropDownButton popup.
content string
Defines the content of the DropDownButton element that can either be a text or HTML elements.
createPopupOnClick boolean
Specifies the popup element creation on open.
cssClass string
Defines class/multiple classes separated by a space in the DropDownButton element. The
DropDownButton size and styles can be customized by using this.
disabled boolean
Specifies a value that indicates whether the DropDownButton is disabled or not.
enableHtmlSanitizer boolean
Specifies whether to enable the rendering of untrusted HTML values in the DropDownButton component.
If ‘enableHtmlSanitizer’ set to true, the component will sanitize any suspected untrusted strings and scripts before rendering them.
enablePersistence boolean
Enable or disable persisting component’s state between page reloads.
enableRtl boolean
Enable or disable rendering component in right to left direction.
iconCss string
Defines class/multiple classes separated by a space for the DropDownButton that is used to
include an icon. DropDownButton can also include font icon and sprite image.
iconPosition SplitButtonIconPosition
Positions the icon before/top of the text content in the DropDownButton. The possible values are:
- Left: The icon will be positioned to the left of the text content.
- Top: The icon will be positioned to the top of the text content.
itemTemplate string|Function
Specifies the template content to be displayed.
items ItemModel[]
Specifies action items with its properties which will be rendered as DropDownButton popup.
locale string
Overrides the global culture and localization value for this component. Default global culture is ‘en-US’.
popupWidth string|number
This property defines the width of the dropdown popup for the DropDownButton component.
target string|Element
Allows to specify the DropDownButton popup item element.