forked from jgraph/mxgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuiconfig.xml
More file actions
36 lines (36 loc) · 1.16 KB
/
uiconfig.xml
File metadata and controls
36 lines (36 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<mxEditor>
<ui>
<add as="graph" element="graph"/>
<add as="toolbar" element="toolbox"/>
</ui>
<Array as="templates">
<add as="myFirstTemplate">
<Rect label="Rectangle" href="">
<mxCell vertex="1">
<mxGeometry as="geometry" width="80" height="40"/>
</mxCell>
</Rect>
</add>
</Array>
<Array as="actions">
<add as="myFirstAction"><![CDATA[
function (editor, cell)
{
var encoder = new mxCodec();
var node = encoder.encode(editor.graph.getModel());
mxUtils.popup(mxUtils.getPrettyXml(node), true);
}
]]></add>
</Array>
<mxDefaultToolbar as="toolbar">
<add as="MyFirstAction" action="myFirstAction" icon="images/icons48/gear.png"/>
<hr/><br/>
<add as="Gear" template="myFirstTemplate" style="rounded=1" icon="images/icons48/server.png"/>
<add as="Earth" template="myFirstTemplate" style="shape=ellipse" icon="images/icons48/earth.png"/>
</mxDefaultToolbar>
<mxDefaultPopupMenu as="popupHandler">
<add as="Show XML (Custom)" action="myFirstAction" icon="images/icons48/gear.png"/>
<separator/>
<add as="Delete (Built-in)" action="delete" icon="images/icons48/keys.png" if="cell"/>
</mxDefaultPopupMenu>
</mxEditor>