Class ContextMenuSettingsBuilder
A builder class that holds schedule context menu items.
Inheritance
System.Object
ContextMenuSettingsBuilder
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.JavaScript
Assembly: Syncfusion.EJ.dll
Syntax
public class ContextMenuSettingsBuilder
Constructors
ContextMenuSettingsBuilder()
Initializes a new instance of the ContextMenuSettingsBuilder class.
Declaration
public ContextMenuSettingsBuilder()
ContextMenuSettingsBuilder(ContextMenuSettings)
Initializes a new instance of the ContextMenuSettingsBuilder class to indicate the context menu.
Declaration
public ContextMenuSettingsBuilder(ContextMenuSettings contextMenu)
Parameters
Type | Name | Description |
---|---|---|
ContextMenuSettings | contextMenu | It accepts the value as ContextMenuSettings object. |
Methods
Enable(Boolean)
This field stores the value that indicates whether to enable the context menu option or not.
Declaration
public ContextMenuSettingsBuilder Enable(bool enable)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | enable | It accepts the value that indicates whether to enable the context menu option or not. |
Returns
Type | Description |
---|---|
ContextMenuSettingsBuilder |
MenuItems(Action<MenuItemsBuilder>)
It stores the default context menu options that are applicable for both Schedule cells and appointments.
Declaration
public ContextMenuSettingsBuilder MenuItems(Action<MenuItemsBuilder> menuItems)
Parameters
Type | Name | Description |
---|---|---|
System.Action<MenuItemsBuilder> | menuItems | It accepts the default context menu options that are applicable for both Schedule cells and appointments. |
Returns
Type | Description |
---|---|
ContextMenuSettingsBuilder |