<ejs-diagram #diagram id="diagram" width="100%" height="580px" [getConnectorDefaults]='connDefaults'
[getNodeDefaults]='nodeDefaults' [layout]='layout' [dataSourceSettings]='data'
[snapSettings]='snapSettings' [selectedItems]="selectedItems"
[serializationSettings]="serializationSettings" [getCustomTool]="getCustomTool" (click)="test()"
(selectionChange)="test($event)">
<!-- Html template to render HTML node -->
<ng-template #nodeTemplate let-data>
<div style="height: 100%; width: 100%">
<div id="{{data.id}}_template"
style="color:white;border:1px solid black;border-top:3px solid red;height:100%;width:100%;box-sizing: border-box;">
</div>
</div>
</ng-template>
</ejs-diagram>
public updatedlgButtonClick(evt: Event): void {
this.diagram.selectedItems.nodes[0].annotations[0].content = this.Description.value;
document.getElementById(this.diagram.selectedItems.nodes[0].id+'_template').style.borderTop = "3px solid "+this.Couleur.value
this.addDialog.hide();
} |