Class DropDownButton
Inherited Members
Namespace: Syncfusion.EJ2.SplitButtons
Assembly: Syncfusion.EJ2.dll
Syntax
public class DropDownButton : EJTagHelper
Constructors
DropDownButton()
Declaration
public DropDownButton()
Properties
BeforeClose
Triggers before closing the DropDownButton popup.
Declaration
[HtmlAttributeName("beforeClose")]
public string BeforeClose { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
BeforeItemRender
Triggers while rendering each Popup item of DropDownButton.
Declaration
[HtmlAttributeName("beforeItemRender")]
public string BeforeItemRender { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
BeforeOpen
Triggers before opening the DropDownButton popup.
Declaration
[HtmlAttributeName("beforeOpen")]
public string BeforeOpen { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Close
Triggers while closing the DropDownButton popup.
Declaration
[HtmlAttributeName("close")]
public string Close { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
CloseActionEvents
Specifies the event to close the DropDownButton popup.
Declaration
[HtmlAttributeName("closeActionEvents")]
public string CloseActionEvents { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
Content
Defines the content of the DropDownButton element that can either be a text or HTML elements.
Declaration
[HtmlAttributeName("content")]
public string Content { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
ContentTemplate
To get or set value for ContentTemplate.
Declaration
public MvcTemplate<object> ContentTemplate { get; set; }
Property Value
Type | Description |
---|---|
MvcTemplate<System.Object> |
Created
Triggers once the component rendering is completed.
Declaration
[HtmlAttributeName("created")]
public string Created { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
CreatePopupOnClick
Specifies the popup element creation on open.
Declaration
[HtmlAttributeName("createPopupOnClick")]
public bool CreatePopupOnClick { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
CssClass
Defines class/multiple classes separated by a space in the DropDownButton element. The DropDownButton size and styles can be customized by using this.
Declaration
[HtmlAttributeName("cssClass")]
public string CssClass { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
Disabled
Specifies a value that indicates whether the DropDownButton is disabled
or not.
Declaration
[HtmlAttributeName("disabled")]
public bool Disabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
EnableHtmlSanitizer
Defines whether to allow the cross-scripting site or not.
Declaration
[HtmlAttributeName("enableHtmlSanitizer")]
public bool EnableHtmlSanitizer { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
EnablePersistence
Enable or disable persisting component's state between page reloads.
Declaration
[HtmlAttributeName("enablePersistence")]
public bool EnablePersistence { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
EnableRtl
Enable or disable rendering component in right to left direction.
Declaration
[HtmlAttributeName("enableRtl")]
public bool EnableRtl { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
HtmlAttributes
Allows additional HTML attributes such as title, name, etc., and accepts n number of attributes in a key-value pair format.
Declaration
[HtmlAttributeName("htmlAttributes")]
public object HtmlAttributes { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
IconCss
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.
Declaration
[HtmlAttributeName("iconCss")]
public string IconCss { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
IconPosition
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.
Declaration
[HtmlAttributeName("iconPosition")]
public SplitButtonIconPosition IconPosition { get; set; }
Property Value
Type | Description |
---|---|
SplitButtonIconPosition | The default value is SplitButtonIconPosition.Left |
Items
Specifies action items with its properties which will be rendered as DropDownButton popup.
Declaration
[HtmlAttributeName("items")]
public object Items { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
Locale
Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
Declaration
[HtmlAttributeName("locale")]
public string Locale { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
Open
Triggers while opening the DropDownButton popup.
Declaration
[HtmlAttributeName("open")]
public string Open { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Select
Triggers while selecting action item in DropDownButton popup.
Declaration
[HtmlAttributeName("select")]
public string Select { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Target
Allows to specify the DropDownButton popup item element.
Declaration
[HtmlAttributeName("target")]
public string Target { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |