Class ModifyItemsCommand
A command that changes properties of design elements in the editor. A command that changes properties of design elements in the editor. For details, you can refer to ICanvasDefinitionModifyItems.
{
"type": "canvas",
"name": "editor",
"params": {
"initial": { ... },
"modifyItems": {
"items": {
"Name": {
"value": "Neo"
},
"Company": {
"value": "Matrix"
}
}
}
}
}
{
"type": "design-editor",
"name": "editor",
"params": {
"initial": { ... },
"modifyItems": {
"items": {
"Name": {
"value": "Neo"
},
"Company": {
"value": "Matrix"
}
}
}
}
}
Package: ui-framework
Methods
execute(ICanvasDefinitionModifyItems, ICanvasDefinitionModifyItems)
Executes this command.
Declaration
function execute(params: ICanvasDefinitionModifyItems, oldParams: ICanvasDefinitionModifyItems)
Parameters
Type | Name | Description |
---|---|---|
ICanvasDefinitionModifyItems | params |
Parameters for the command. |
ICanvasDefinitionModifyItems | oldParams |
The previous parameters for the command. |
Returns
Type | Description |
---|---|
Promise<any> |