Skip to main content

changeGridStep

Description

Fires after the value of the grid step has been changed

Usage

changeGridStep: (step: number) => void;

Parameters

The callback of the event takes the following parameter:

  • step - (required) the current value of the grid step

Example

// initializing Diagram Editor
const editor = new dhx.DiagramEditor("editor_container");
// loading data
editor.parse(data);

// attaching a handler to the event
editor.events.on("changeGridStep", function(step) {
console.log("The grid step is changed to:", step);
});