Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何在mxgraph的mxCell标记中添加自定义属性。_Javascript_Mxgraph - Fatal编程技术网

Javascript 如何在mxgraph的mxCell标记中添加自定义属性。

Javascript 如何在mxgraph的mxCell标记中添加自定义属性。,javascript,mxgraph,Javascript,Mxgraph,如何在mxgraph的mxCell标记中添加自定义属性? 我想添加value2=“customValue <mxGraphModel dx="872" dy="535" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" background="#ffffff">

如何在mxgraph的mxCell标记中添加自定义属性? 我想添加value2=“customValue

<mxGraphModel dx="872" dy="535" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" background="#ffffff">
      <root>
        <mxCell id="0"/>
        <mxCell id="1" parent="0"/>

        <mxCell id="2" value="wfState_1" value2="customValue" style="strokeColor:red" vertex="1" parent="1">
          <mxGeometry x="50" y="110" width="120" height="70" as="geometry"/>
        </mxCell>
      </root>
    </mxGraphModel>

mxGraph文档说明使用xml作为值属性。
this.createVertexTemplateEntry('rounded=0;whiteSpace=wrap;html=1;strokeColor=red;shadow=1', 120, 70, 'wfState_2', 'workFllow2', null, null, 'rect rectangle box'),