Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
148677 | Oct 30,2019 03:44 AM UTC | Nov 1,2019 09:12 AM UTC | React - EJ 2 | 5 |
![]() |
Tags: Diagram |
template: '<div><input type="button" value="Submit"></div>'
I tried
<div><input type="button" value="Submit" onClick="myFunction"></div> .. but this does not work.. but works in normal react..
//Initializes the nodes for the diagram
let nodes = [
{
id: "NewIdea",
width: 200,
height: 60,
offsetX: 200,
offsetY: 80,
shape: {
type: 'HTML',
content: '<div style="background:#6BA5D7;height:100%;width:100%;"><button type="button" id="button" style="width:100px"> Button</button></div>',
},
},
];
export class Default extends SampleBase {
rendereComplete() {
//click event for html content
document.getElementById("button").onclick = function () {
alert("button")
}
}
} |
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.