NamedCommand
in namespace DotVVM.Framework.Controls
Declares a command that can be exposed to JavaScript code under a specified name.
Usage & Scenarios
This control is used to specify commands which can be called from modules imported by the JS directive.
Properties
| Name | Type | Description | Notes | Default Value | |
|---|---|---|---|---|---|
| ClientIDMode | ClientIDMode | Gets or sets the client ID generation algorithm. |
attribute
static value
|
Static | |
| DataContext | Object | Gets or sets a data context for the control and its children. All value and command bindings are evaluated in context of this value. The DataContext is null in client-side templates. |
attribute
bindable
|
null | |
| ID | String | Gets or sets the control client ID within its naming container. |
attribute
static value
bindable
|
null | |
| IncludeInPage | Boolean | Gets or sets whether the control is included in the DOM of the page. |
attribute
bindable
|
True | |
| Name | String | Gets or sets the name of the command to be used in JavaScript code. |
attribute
static value
|
null |
Events
| Name | Type | Description | |
|---|---|---|---|
| Command | ICommandBinding | Gets or sets a command that will be invoked. |