Class MenuBaseItemBuilder
Inheritance
Inherited Members
Namespace: Syncfusion.JavaScript
Assembly: Syncfusion.EJ.dll
Syntax
public class MenuBaseItemBuilder
Constructors
MenuBaseItemBuilder(MenuBaseItem)
Initializes a new instance of the MenuBaseItemBuilder class.
Declaration
public MenuBaseItemBuilder(MenuBaseItem item)
Parameters
Type | Name | Description |
---|---|---|
MenuBaseItem | item |
Methods
Children(Action<MenuBaseItemAdder>)
Tab base item child
Declaration
public MenuBaseItemBuilder Children(Action<MenuBaseItemAdder> child)
Parameters
Type | Name | Description |
---|---|---|
System.Action<MenuBaseItemAdder> | child | child |
Returns
Type | Description |
---|---|
MenuBaseItemBuilder | This method returns menu base item builder value |
ContentTemplate(Action<MenuBaseItem>)
Menu base item content template
Declaration
public MenuBaseItemBuilder ContentTemplate(Action<MenuBaseItem> contentTemplate)
Parameters
Type | Name | Description |
---|---|---|
System.Action<MenuBaseItem> | contentTemplate | content template |
Returns
Type | Description |
---|---|
MenuBaseItemBuilder | This method returns menu base item builder value |
ContentTemplate(Func<MenuBaseItem, Object>)
Menu base item content template
Declaration
public MenuBaseItemBuilder ContentTemplate(Func<MenuBaseItem, object> contentTemplate)
Parameters
Type | Name | Description |
---|---|---|
System.Func<MenuBaseItem, System.Object> | contentTemplate | content template |
Returns
Type | Description |
---|---|
MenuBaseItemBuilder | This method returns menu base item builder value |
HtmlAttributes(IDictionary<String, Object>)
Menu base item html attributes
Declaration
public MenuBaseItemBuilder HtmlAttributes(IDictionary<string, object> itemHtmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> | itemHtmlAttributes | itemHtmlAttributes |
Returns
Type | Description |
---|---|
MenuBaseItemBuilder | This method returns object value |
Id(String)
Menu base item id.
Declaration
public MenuBaseItemBuilder Id(string itemId)
Parameters
Type | Name | Description |
---|---|---|
System.String | itemId | itemId |
Returns
Type | Description |
---|---|
MenuBaseItemBuilder | This method returns string value |
ImageAttributes(IDictionary<String, Object>)
Menu base item image attributes
Declaration
public MenuBaseItemBuilder ImageAttributes(IDictionary<string, object> imageAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> | imageAttributes | imageAttributes |
Returns
Type | Description |
---|---|
MenuBaseItemBuilder | This method returns object value |
ImageUrl(String)
Menu base item image url
Declaration
public MenuBaseItemBuilder ImageUrl(string imageUrl)
Parameters
Type | Name | Description |
---|---|---|
System.String | imageUrl |
Returns
Type | Description |
---|---|
MenuBaseItemBuilder | This method returns string value |
LinkAttributes(IDictionary<String, Object>)
Menu base item link attributes
Declaration
public MenuBaseItemBuilder LinkAttributes(IDictionary<string, object> linkAttributes)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> | linkAttributes | linkAttributes |
Returns
Type | Description |
---|---|
MenuBaseItemBuilder | This method returns object value |
SpriteCssClass(String)
Menu base item sprite css class
Declaration
public MenuBaseItemBuilder SpriteCssClass(string spriteCssClass)
Parameters
Type | Name | Description |
---|---|---|
System.String | spriteCssClass | spriteCssClass |
Returns
Type | Description |
---|---|
MenuBaseItemBuilder | This method returns string value |
Text(String)
Menu base item text
Declaration
public MenuBaseItemBuilder Text(string itemText)
Parameters
Type | Name | Description |
---|---|---|
System.String | itemText | itemText |
Returns
Type | Description |
---|---|
MenuBaseItemBuilder | This method returns string value |
Url(String)
Menu base item url.
Declaration
public MenuBaseItemBuilder Url(string itemUrl)
Parameters
Type | Name | Description |
---|---|---|
System.String | itemUrl | itemUrl |
Returns
Type | Description |
---|---|
MenuBaseItemBuilder | This method returns string value |