Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
145620 | Jul 1,2019 03:07 PM UTC | Jul 2,2019 11:58 AM UTC | Angular - EJ 2 | 3 |
![]() |
Tags: Diagram |
App.component.html
<ejs-diagram #diagram id="diagram" width="100%" height="499px" [tool]='tool'>
</ejs-diagram>
App.component.ts
public tool: DiagramTools = DiagramTools.ZoomPan;
|
<div>
<button id="changeTool" (click)="changeTool()"> changeTool </button>
</div>
changeTool(): void {
//set ZoomPan tool
this.diagram.tool = DiagramTools.ZoomPan;
this.diagram.dataBind();
}
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.