afterEditorClose
Description
Fires after the inline editor of the item is closed
Usage
afterEditorClose: (
id: string | number,
key: string,
subId?: string
) => void;
Parameters
The callback of the event takes the following parameters:
id
- (required) the id of an itemkey
- (required) the name of the edited propertysubId
- (optional) the id of a subheader of a swimlane or a text element of a line
Example
// initializing Diagram
const diagram = new dhx.Diagram("diagram_container", {
type: "default"
});
// loading data
diagram.data.parse(data);
// attaching a handler to the event
diagram.events.on("afterEditorClose", (id, key, subId) => {
console.log(id, key, subId);
});
Change log:
- The subHeaderId parameter has been changed to subId in v4.1
- Added in v4.0