Class RibbonButtonSettingsBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
RibbonButtonSettingsBuilder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.EJ2.Ribbon
Assembly: Syncfusion.AspNetMvc.Ribbon.dll
Syntax
public class RibbonButtonSettingsBuilder : ControlBuilder
Constructors
RibbonButtonSettingsBuilder()
Declaration
public RibbonButtonSettingsBuilder()
RibbonButtonSettingsBuilder(RibbonButtonSettings)
Declaration
public RibbonButtonSettingsBuilder(RibbonButtonSettings model)
Parameters
| Type | Name | Description |
|---|---|---|
| RibbonButtonSettings | model |
Methods
Clicked(String)
Event triggers when the button is clicked.
Declaration
public RibbonButtonSettingsBuilder Clicked(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value |
Returns
| Type |
|---|
| RibbonButtonSettingsBuilder |
Content(String)
Defines the content for the button.
Declaration
public RibbonButtonSettingsBuilder Content(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value |
Returns
| Type |
|---|
| RibbonButtonSettingsBuilder |
Created(String)
Event triggers once the button is created.
Declaration
public RibbonButtonSettingsBuilder Created(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value |
Returns
| Type |
|---|
| RibbonButtonSettingsBuilder |
CssClass(String)
Defines one or more CSS classes to customize the appearance of button.
Declaration
public RibbonButtonSettingsBuilder CssClass(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value |
Returns
| Type |
|---|
| RibbonButtonSettingsBuilder |
HtmlAttributes(Object)
Specifies additional HTML attributes to be applied to the button.
Declaration
public RibbonButtonSettingsBuilder HtmlAttributes(object value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | value |
Returns
| Type |
|---|
| RibbonButtonSettingsBuilder |
IconCss(String)
Defines the CSS class for the icons to be shown in button.
Declaration
public RibbonButtonSettingsBuilder IconCss(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value |
Returns
| Type |
|---|
| RibbonButtonSettingsBuilder |
IsPrimary(Boolean)
Defines whether the button is primary button or not.
Declaration
public RibbonButtonSettingsBuilder IsPrimary(bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | value |
Returns
| Type |
|---|
| RibbonButtonSettingsBuilder |
IsToggle(Boolean)
Defines whether the button is toggle button or not.
Declaration
public RibbonButtonSettingsBuilder IsToggle(bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | value |
Returns
| Type |
|---|
| RibbonButtonSettingsBuilder |