[]
        
(Showing Draft Content)

C1.Web.Mvc.Fluent.MenuItemBuilder.Command

Command Method

Command(Action<MenuCommandBuilder>)

Sets the Command property.

Declaration
public MenuItemBuilder Command(Action<MenuCommandBuilder> build)
Parameters
Type Name Description
Action<MenuCommandBuilder> build

The build action

Returns
Type Description
MenuItemBuilder

Current builder

Command(string, string)

Sets the Command property.

Declaration
public MenuItemBuilder Command(string execute, string canExecute = null)
Parameters
Type Name Description
string execute

The execute client function

string canExecute

The canExecute client function

Returns
Type Description
MenuItemBuilder

Current builder