Class ButtonProperties
Inherited Members
Namespace: Syncfusion.JavaScript.Models
Assembly: Syncfusion.EJ.dll
Syntax
public class ButtonProperties : EJTagHelper
Constructors
ButtonProperties()
Initializes a new instance of the ButtonProperties class.
Declaration
public ButtonProperties()
Properties
Click
Gets or sets a value indicating this event gets fired when button is clicked.
Declaration
[JsonProperty("click")]
public string Click { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ContentType
Gets or sets the content type of the button. Button can have image only, text only, image text image, text and image or image both as content type.
Declaration
[JsonProperty("contentType")]
[JsonConverter(typeof(StringEnumConverter))]
public ContentType ContentType { get; set; }
Property Value
Type | Description |
---|---|
ContentType |
Create
Gets or sets a value indicating this event gets fired when button is created.
Declaration
[JsonProperty("create")]
public string Create { get; set; }
Property Value
Type | Description |
---|---|
System.String |
CssClass
Gets or sets the root CSS class to button for theme customization.
Declaration
[JsonProperty("cssClass")]
public string CssClass { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Destroy
Gets or sets a value indicating this event gets fired when the button is destroyed.
Declaration
[JsonProperty("destroy")]
public string Destroy { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Enabled
Gets or sets a value indicating whether the control can respond to user interaction.
Declaration
[JsonProperty("enabled")]
public bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
EnableRTL
Gets or sets a value indicating whether control's elements supports to align in right to left direction.
Declaration
[JsonProperty("enableRTL")]
public bool EnableRTL { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Height
Gets or sets the height of the button.
Declaration
[JsonProperty("height")]
public string Height { get; set; }
Property Value
Type | Description |
---|---|
System.String |
HtmlAttributes
Gets or sets the value to map the field of HTML attributes.
Declaration
[JsonProperty("htmlAttributes")]
public IDictionary<string, object> HtmlAttributes { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> |
ImagePosition
Gets or sets a value indicating whether image position is left or right. This property is applicable for the content type 'text and image' only.
Declaration
[JsonConverter(typeof(StringEnumConverter))]
[JsonProperty("imagePosition")]
public ImagePosition ImagePosition { get; set; }
Property Value
Type | Description |
---|---|
ImagePosition |
PrefixIcon
Gets or sets the primary icon for button. This is applicable for the content types image only, image text image, text and image and image both.
Declaration
[JsonProperty("prefixIcon")]
public string PrefixIcon { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RepeatButton
Gets or sets a value indicating whether button can acts as repeat button. Repeat button raises its ‘click’ event repeatedly from the time it is pressed until it is released.
Declaration
[JsonProperty("repeatButton")]
public bool RepeatButton { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ShowRoundedCorner
Gets or sets a value indicating whether button with rounded corners or not.
Declaration
[JsonProperty("showRoundedCorner")]
public bool ShowRoundedCorner { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Size
Gets or sets the size of the button. Size can be normal, mini, small, medium or large.
Declaration
[JsonConverter(typeof(StringEnumConverter))]
[JsonProperty("size")]
public ButtonSize Size { get; set; }
Property Value
Type | Description |
---|---|
ButtonSize |
SuffixIcon
Gets or sets the secondary icon for button. This is applicable for the content types imagetextimage and imageboth.
Declaration
[JsonProperty("suffixIcon")]
public string SuffixIcon { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Text
Gets or sets the text associated with button.
Declaration
[JsonProperty("text")]
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TimeInterval
Gets or sets the time interval between two consecutive ‘click’ event on the button. This applicable for button in 'repeat button' mode only.
Declaration
[JsonProperty("timeInterval")]
public string TimeInterval { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Type
Gets or sets a value indicating whether the button is a submit, reset or normal button.
Declaration
[JsonConverter(typeof(StringEnumConverter))]
[JsonProperty("type")]
public ButtonType Type { get; set; }
Property Value
Type | Description |
---|---|
ButtonType |
Width
Gets or sets the width of the button.
Declaration
[JsonProperty("width")]
public string Width { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
GetControlDetails()
Holds the Button control details.
Declaration
protected override object GetControlDetails()
Returns
Type | Description |
---|---|
System.Object |