Class ToolbarBaseItemBuilder
Inheritance
Inherited Members
Namespace: Syncfusion.JavaScript
Assembly: Syncfusion.EJ.dll
Syntax
public class ToolbarBaseItemBuilder
Constructors
ToolbarBaseItemBuilder(ToolbarBaseItem)
Initializes a new instance of the ToolbarBaseItemBuilder class.
Declaration
public ToolbarBaseItemBuilder(ToolbarBaseItem item)
Parameters
Type | Name | Description |
---|---|---|
ToolbarBaseItem | item |
Methods
ContentTemplate(Action<ToolbarBaseItem>)
Defines the content template for the toolbar item.
Declaration
public ToolbarBaseItemBuilder ContentTemplate(Action<ToolbarBaseItem> contentTemplate)
Parameters
Type | Name | Description |
---|---|---|
System.Action<ToolbarBaseItem> | contentTemplate | contentTemplate |
Returns
Type | Description |
---|---|
ToolbarBaseItemBuilder | This method returns toolbar base item builder value |
ContentTemplate(Func<ToolbarBaseItem, Object>)
Defines the content template for the toolbar item.
Declaration
public ToolbarBaseItemBuilder ContentTemplate(Func<ToolbarBaseItem, object> contentTemplate)
Parameters
Type | Name | Description |
---|---|---|
System.Func<ToolbarBaseItem, System.Object> | contentTemplate | contentTemplate |
Returns
Type | Description |
---|---|
ToolbarBaseItemBuilder | This method returns toolbar base item builder value |
Group(String)
Defines the group name for the item.
Declaration
public ToolbarBaseItemBuilder Group(string group)
Parameters
Type | Name | Description |
---|---|---|
System.String | group | group |
Returns
Type | Description |
---|---|
ToolbarBaseItemBuilder | This method returns object value |
HtmlAttributes(String)
Defines the HTML attributes such as id, class, styles for the item to extend the capability.
Declaration
public ToolbarBaseItemBuilder HtmlAttributes(string itemHtmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.String | itemHtmlAttributes | itemHtmlAttributes |
Returns
Type | Description |
---|---|
ToolbarBaseItemBuilder | This method returns object value |
Id(String)
Specifies the id to toolbar items list
Declaration
public ToolbarBaseItemBuilder Id(string itemId)
Parameters
Type | Name | Description |
---|---|---|
System.String | itemId | itemId |
Returns
Type | Description |
---|---|
ToolbarBaseItemBuilder | This method returns string value |
ImageAttributes(String)
Defines the image attributes such as height, width, styles and so on.
Declaration
public ToolbarBaseItemBuilder ImageAttributes(string itemImageAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.String | itemImageAttributes | itemImageAttributes |
Returns
Type | Description |
---|---|
ToolbarBaseItemBuilder | This method returns string value |
ImageUrl(String)
Defines the imageURL for the image location.
Declaration
public ToolbarBaseItemBuilder ImageUrl(string itemImageUrl)
Parameters
Type | Name | Description |
---|---|---|
System.String | itemImageUrl | itemImageUrl |
Returns
Type | Description |
---|---|
ToolbarBaseItemBuilder | This method returns string value |
SpriteCssClass(String)
Defines the sprite CSS for the image tag.
Declaration
public ToolbarBaseItemBuilder SpriteCssClass(string itemSpriteCssClass)
Parameters
Type | Name | Description |
---|---|---|
System.String | itemSpriteCssClass | itemSpriteCssClass |
Returns
Type | Description |
---|---|
ToolbarBaseItemBuilder | This method returns string value |
Text(String)
Defines the item text.
Declaration
public ToolbarBaseItemBuilder Text(string itemText)
Parameters
Type | Name | Description |
---|---|---|
System.String | itemText | itemText |
Returns
Type | Description |
---|---|
ToolbarBaseItemBuilder | This method returns string value |
TooltipText(String)
Defines the tooltip text for the tag.
Declaration
public ToolbarBaseItemBuilder TooltipText(string itemTooltipText)
Parameters
Type | Name | Description |
---|---|---|
System.String | itemTooltipText | itemTooltipText |
Returns
Type | Description |
---|---|
ToolbarBaseItemBuilder | This method returns string value |