Class RibbonGalleryItemBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
RibbonGalleryItemBuilder
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 RibbonGalleryItemBuilder : ControlBuilder
Constructors
RibbonGalleryItemBuilder()
Declaration
public RibbonGalleryItemBuilder()
RibbonGalleryItemBuilder(List<RibbonGalleryItem>)
Declaration
public RibbonGalleryItemBuilder(List<RibbonGalleryItem> collection)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.List<RibbonGalleryItem> | collection |
Methods
Add()
Declaration
public void Add()
Content(String)
Defines the content for the gallery item.
Declaration
public RibbonGalleryItemBuilder Content(string content)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | content |
Returns
| Type |
|---|
| RibbonGalleryItemBuilder |
ContentTemplate(Action<Object>)
Declaration
public RibbonGalleryItemBuilder ContentTemplate(Action<object> template)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<System.Object> | template |
Returns
| Type |
|---|
| RibbonGalleryItemBuilder |
ContentTemplate(Func<Object, Object>)
Declaration
public RibbonGalleryItemBuilder ContentTemplate(Func<object, object> template)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Func<System.Object, System.Object> | template |
Returns
| Type |
|---|
| RibbonGalleryItemBuilder |
CssClass(String)
Defines the CSS class to customize the gallery items.
Declaration
public RibbonGalleryItemBuilder CssClass(string cssClass)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | cssClass |
Returns
| Type |
|---|
| RibbonGalleryItemBuilder |
Disabled(Boolean)
Defines whether the item is disabled or not.
Declaration
public RibbonGalleryItemBuilder Disabled(bool disabled)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | disabled |
Returns
| Type |
|---|
| RibbonGalleryItemBuilder |
HtmlAttributes(Object)
Specifies additional HTML attributes to be applied to the Ribbon Gallery item.
Declaration
public RibbonGalleryItemBuilder HtmlAttributes(object htmlAttributes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | htmlAttributes |
Returns
| Type |
|---|
| RibbonGalleryItemBuilder |
IconCss(String)
Defines the image or icons for the gallery item.
Declaration
public RibbonGalleryItemBuilder IconCss(string iconCss)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | iconCss |
Returns
| Type |
|---|
| RibbonGalleryItemBuilder |