executeCommand

Executes a command.

Parameters

command String

The command to execute.

args Object (optional)

The command arguments.

Example

<div id="imageEditor"></div>
<script>
    $("#imageEditor").kendoImageEditor({
        height: 500,
        imageUrl: "https://demos.telerik.com/kendo-ui/content/shared/images/photos/2.jpg",
        imageRendered: function (ev) {
            var imageEditor = ev.sender;
            imageEditor.executeCommand({ command: "ZoomImageEditorCommand", options: imageEditor.getZoomLevel() - 0.01 });
        }
    });
</script>
In this article