getDiagramMetadata
getDiagramMetadata Method
Description
Gets diagram metadata previously set using the setDiagramMetadata method.
.getDiagramMetadata(/* String */ name)
Parameters
name
String
The name of the metadata item to be retrieved.
Returns
The original object that was serialized using the setDiagramMetadata method.
Example
editor = new window.__editor(undefined, document.getElementById('editor-node'));
/* set editor properties here */
editor.startup();
editor.setDiagramMetadata("name", "value");
In logic elsewhere:
var name = editor.getDiagramMetadata("name");