BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
//inject undo redo module
Diagram.Inject(UndoRedo)
<ejs-diagram #diagramControl id="diagram-control"
width="100%" height="500px"
[contextMenuSettings]="this.contextMenuSettings"
(collectionChange)="onCollectionChange($event)"
(historyChange)="onHistoryChange($event)"
(created)="onCreated()">
</ejs-diagram>
onHistoryChange(args: IHistoryChangeArgs) {
if((args.change as any).type === 'Group' || (args.change as any).type === 'UnGroup') {
console.log(`historychange`);
}
} |
interface IHistory {
type: string
}
onHistoryChange(args: IHistoryChangeArgs) {
if((args.change as IHistory).type === 'Group' || (args.change as IHistory).type === 'UnGroup') {
console.log(`historychange`);
}
} |