Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
ContextMenuItemBuilder
Assembly: Syncfusion.EJ2.dll
public class ContextMenuItemBuilder : ControlBuilder
Constructors
Declaration
public ContextMenuItemBuilder()
Declaration
public ContextMenuItemBuilder(ContextMenuItem model)
Parameters
Methods
Specifies the htmlAttributes property to support adding custom attributes to the menu items in the menu component.
Declaration
public ContextMenuItemBuilder HtmlAttributes(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Returns
Defines class/multiple classes separated by a space for the menu Item that is used to include an icon.
Menu Item can include font icon and sprite image.
Declaration
public ContextMenuItemBuilder IconCss(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Specifies the id for menu item.
Declaration
public ContextMenuItemBuilder Id(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Specifies the sub menu items that is the array of MenuItem model.
Declaration
public ContextMenuItemBuilder Items(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Returns
Specifies separator between the menu items. Separator are either horizontal or vertical lines used to group menu items.
Declaration
public ContextMenuItemBuilder Separator(bool value)
Parameters
Type |
Name |
Description |
System.Boolean |
value |
|
Returns
Specifies text for menu item.
Declaration
public ContextMenuItemBuilder Text(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Specifies url for menu item that creates the anchor link to navigate to the url provided.
Declaration
public ContextMenuItemBuilder Url(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns