Adds a new child node with the specified name and value to the specified parent node.
Namespace: MindFusion.Diagramming
Package: XmlPersistContext.js
JavaScript Copy Code |
---|
function addChildElement (elementName, parentElement, [innerText]) |
String. A string containing the name of new child element.
Element. The parent DOM Element object.
String. Optional value to be added as child text node of the new element.
Element. The newly created DOM Element object.
NetDiagram Programmer's Guide | © 2023 MindFusion |