|
public nodes: NodeModel[] = [{
id: 'node1', height: 100, width: 100, offsetX: 200, offsetY: 200,
constraints: NodeConstraints.ReadOnly,
shape: {
type: 'HTML',
content: '<div style="width:100%">'+
'<input type="button" id="button" value="Submit">'+
'</div>'}
}]; |
|
public created() {
let button = document.getElementById('button');
button.onclick = () => {
this.diagram.unSelect(this.diagram.selectedItems.nodes[0]);
}
}
public nodes: NodeModel[] = [{
id: 'node1', height: 100, width: 100, offsetX: 200, offsetY: 200,
shape: {
type: 'HTML',
content: '<div style="width:100%">'+
'<input type="button" id="button" value="Submit">'+
'</div>'}
}]; |