Query |
Response | |
I'm trying to get all nodes, to change a property for each one of them, and I've just found the findNode method. Does a getAllNodes exist? |
Please use diagram updateNode method to update the node appearance at runtime. Please refer to a code example and sample below.
Code example:
Help documentation: https://help.syncfusion.com/api/js/ejdiagram#methods:updatenode
| |
Is there a way to keep the tooltip always prompt? or add a custom_window with a addInfo.myCustomData? I want it to be visible all the time next to de node like the tooltip does. |
The tooltip will be shown when you hover on a diagram elements If you need to show a custom data in a custom window, in a click event of the sample below, we used the dialog box to display custom information.
Code example:
| |
How do you fill in the html with a collection like {{:addInfo.MyCustomCollection[*].mycustomproperty}}, I want to fill in all the data that I have in my collection. |
Please refer to a code example in which we have bind the HTML node custom collection data to the HTML content.
Code example:
|
click: function (args){
if(args.element&& args.element.addInfo)
{
document.getElementById("nodetext").value= args.element.addInfo.MyCustomProperty[0].data;
var dialogObj = $("#dialog").data("ejDialog")
dialogObj.open();
}
}, |