Class SplitButton
Inheritance
Namespace: Syncfusion.EJ2.SplitButtons
Assembly: Syncfusion.EJ2.dll
Syntax
public class SplitButton : EJTagHelper
Constructors
SplitButton()
Declaration
public SplitButton()
Properties
BeforeClose
Triggers before closing the SplitButton popup.
Declaration
public string BeforeClose { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
BeforeItemRender
Triggers while rendering each Popup item of SplitButton.
Declaration
public string BeforeItemRender { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
BeforeOpen
Triggers before opening the SplitButton popup.
Declaration
public string BeforeOpen { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Click
Triggers when the primary button of SplitButton has been clicked.
Declaration
public string Click { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Close
Triggers while closing the SplitButton popup.
Declaration
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
public string CloseActionEvents { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
Content
Defines the content of the SplitButton primary action button can either be a text or HTML elements.
Declaration
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 |
---|
Syncfusion.EJ2.MvcTemplate<System.Object> |
Created
Triggers once the component rendering is completed.
Declaration
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
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 SplitButton element. The SplitButton size and styles can be customized by using this.
Declaration
public string CssClass { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
Disabled
Specifies a value that indicates whether the SplitButton is disabled or not.
Declaration
public bool Disabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
EnableHtmlSanitizer
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.
Declaration
public bool EnableHtmlSanitizer { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is true |
EnablePersistence
Enable or disable persisting component's state between page reloads.
Declaration
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
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
public object HtmlAttributes { get; set; }
Property Value
Type |
---|
System.Object |
IconCss
Defines class/multiple classes separated by a space for the SplitButton that is used to include an icon. SplitButton can also include font icon and sprite image.
Declaration
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 SplitButton. 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
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 SplitButton secondary button popup.
Declaration
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
public string Locale { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
Open
Triggers while opening the SplitButton popup.
Declaration
public string Open { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Select
Triggers while selecting action item of SplitButton popup.
Declaration
public string Select { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Target
Allows to specify the SplitButton popup item element.
Declaration
public string Target { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |