getDiagramMetadata Method

Description

Gets diagram metadata previously set using setDiagramMetadata.

Syntax

.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 ESDWeb(null, 'editorNode');

/* set editor properties here */

editor.startup();

editor.setDiagramMetadata("name", "value");

In logic elsewhere:

var name = editor.getDiagramMetadata("name");