Class HtmlNode
HTML elements can be embedded in the Diagram through the HTML type node. To create an HTML node, set the type of node as “htmlâ€.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.JavaScript.DataVisualization.Models.Diagram
Assembly: Syncfusion.EJ.dll
Syntax
public class HtmlNode : Node
Constructors
HtmlNode()
Initializes a new instance of the HtmlNode class.
Declaration
public HtmlNode()
HtmlNode(HtmlNode)
Initializes a new instance of the HtmlNode class.
Declaration
public HtmlNode(HtmlNode src)
Parameters
| Type | Name | Description |
|---|---|---|
| HtmlNode | src |
Properties
TemplateId
Gets or sets the id of svg/html templates. Applicable, if the node is html or native.
Declaration
[JsonProperty("templateId")]
public string TemplateId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | String.Empty |
Examples
<script type="text/x-jsrender" id="svgTemplate">
 <div style="background-color: #F08080; color: white; white-space: nowrap; height: 20px">
     <span style="padding: 5px;"> </span>
 </div>
</script>
      NativeNode Node = new NativeNode()
      {
          Name = "bpmn",
          TemplateId = "svgTemplate"
      };
Methods
Clone()
Performs a deep copy of the set of matched elements, meaning that it copies the matched elements as well as all of their descendant elements.
Declaration
public override object Clone()
Returns
| Type | Description |
|---|---|
| System.Object | object |