Class KanbanContextMenuSettingsBuilder
Represents a class for KanbanContextMenuSettingsBuilder which includes menu items, enable, disable default items, and custom menu items.
Inheritance
Inherited Members
Namespace: Syncfusion.JavaScript
Assembly: Syncfusion.EJ.dll
Syntax
public class KanbanContextMenuSettingsBuilder
Constructors
KanbanContextMenuSettingsBuilder(KanbanContextMenuSettings)
Initializes a new instance of the KanbanContextMenuSettingsBuilder class.
Declaration
public KanbanContextMenuSettingsBuilder(KanbanContextMenuSettings contextmenu)
Parameters
Type | Name | Description |
---|---|---|
KanbanContextMenuSettings | contextmenu | It displays the list of ContextMenuSettings option |
Methods
CustomMenuItems(Action<CustomContextMenuBuilder>)
It sets a value that indicates whether to add custom contextMenu items to perform any action in the Kanban.
Declaration
public KanbanContextMenuSettingsBuilder CustomMenuItems(Action<CustomContextMenuBuilder> customMenuItems)
Parameters
Type | Name | Description |
---|---|---|
System.Action<CustomContextMenuBuilder> | customMenuItems | It accepts the CustomMenuItems through lambda expression |
Returns
Type | Description |
---|---|
KanbanContextMenuSettingsBuilder | KanbanContextMenuSettingsBuilder |
CustomMenuItems(List<CustomMenuItem>)
It sets a value that indicates whether to add custom contextMenu items to perform any action in the Kanban.
Declaration
public KanbanContextMenuSettingsBuilder CustomMenuItems(List<CustomMenuItem> customMenuItems)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<CustomMenuItem> | customMenuItems | It accepts the list of CustomMenuItems |
Returns
Type | Description |
---|---|
KanbanContextMenuSettingsBuilder | KanbanContextMenuSettingsBuilder |
DisableDefaultItems(Action<ContextMenuItemsBuilder>)
It gets or sets a value that indicates the items needs to be disable from default context menu.
Declaration
public KanbanContextMenuSettingsBuilder DisableDefaultItems(Action<ContextMenuItemsBuilder> defaultItems)
Parameters
Type | Name | Description |
---|---|---|
System.Action<ContextMenuItemsBuilder> | defaultItems | It accepts the list of ContextMenuItems through lambda expression |
Returns
Type | Description |
---|---|
KanbanContextMenuSettingsBuilder | KanbanContextMenuSettingsBuilder |
DisableDefaultItems(List<KanbanContextMenuItem>)
It gets or sets a value that indicates the list of items needs to be disable from default context menu.
Declaration
public KanbanContextMenuSettingsBuilder DisableDefaultItems(List<KanbanContextMenuItem> defaultItems)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<KanbanContextMenuItem> | defaultItems | It accepts the list of ContextMenuItems |
Returns
Type | Description |
---|---|
KanbanContextMenuSettingsBuilder | KanbanContextMenuSettingsBuilder |
Enable(Boolean)
It sets a value that indicates whether to enable the context menu action in the Kanban and display default menu items.
Declaration
public KanbanContextMenuSettingsBuilder Enable(bool enable)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | enable | If set to |
Returns
Type | Description |
---|---|
KanbanContextMenuSettingsBuilder | KanbanContextMenuSettingsBuilder |
MenuItems(Action<KanbanContextMenuBuilder>)
It sets a value that indicates whether to add the default context menu actions as a contextmenu items.If enable is true it will show all the items related to the target, if you want selected items from contextmenu you have to mention in the menuItems.
Declaration
public KanbanContextMenuSettingsBuilder MenuItems(Action<KanbanContextMenuBuilder> menuItems)
Parameters
Type | Name | Description |
---|---|---|
System.Action<KanbanContextMenuBuilder> | menuItems | It accepts the list of ContextMenuItems through lambda expression |
Returns
Type | Description |
---|---|
KanbanContextMenuSettingsBuilder | KanbanContextMenuSettingsBuilder |
MenuItems(List<KanbanContextMenuItem>)
It sets a value that indicates whether to add the default context menu actions as a context menu items If enable is true it will show all the items related to the target, if you want selected items from contextmenu you have to mention in the menuItems.
Declaration
public KanbanContextMenuSettingsBuilder MenuItems(List<KanbanContextMenuItem> menuItems)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<KanbanContextMenuItem> | menuItems | It accepts the list of ContextMenuItems |
Returns
Type | Description |
---|---|
KanbanContextMenuSettingsBuilder | KanbanContextMenuSettingsBuilder |