Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
141940 | Jan 11,2019 09:01 AM UTC | Jan 21,2019 11:36 AM UTC | Angular - EJ 2 | 7 |
![]() |
Tags: Diagram |
Please let us know how to add event for the button which is available in the html.
let html: string = '<div style="height:100%;width:100%;"><button class="btn success" >Parameter 1</button></div>'
this.node = this.createHtmlNode('idHead1', 120, 110, 900, 310, html);
this.nodes.push(this.node);
following is the function
public createHtmlNode(id: string, width: number, height: number, offsetX: number, offsetY: number, html: string): any {
let node: NodeModel = {}
node.id = id;
node.width = width;
node.height = height;
node.offsetX = offset;
node.offsetY = offset;
node.shape = {type: 'HTML', content: html};
return node;
};
Regards
Nageswar
let html: string = '<div style="height:100%;width:100%;"><button class="btn success" onclick=”data()” >Parameter 1</button></div>'
index.html
function data() {
}
|
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.