Use html template and svg template in diagram

Hi,

could you give me an example of how to use svg- and html templates in the diagram with angular2/4?

I try this out:
<ej-diagram width="100%"
height="100%"
[pageSettings]="pageSettings"
[snapSettings]="snapSettings"
[nodes]="nodes"
style="border: 1px solid #95989A;">

ej-diagram>

<script src="http://borismoore.github.io/jsrender/jsrender.min.js"><script>
<script id="svgTemplate" type="text/x-jsrender">
script>


Best regards
Mathias


1 Reply

SG Shyam G Syncfusion Team December 12, 2017 12:23 PM UTC

Hi Mathias, 
 
Please note that we should refer script template only in index.html file to create an HTML/Native node. please refer to the link below.   
 
 
We have created a sample in which we have rendered Html and native node. please refer to the sample and help documentation below. 
 
 
 
Regards, 
Shyam G 


Loader.
Up arrow icon