syncfusion/ej2-angular-ui-components

how to set template for Diagram hierarchical tree

messxay opened this issue · 1 comments

Hi all, I want set template for node use ng-template but i can't find document for it.

i processed problem by set nodeTemplate and set type shape of NodeModel HTML and content is '',

_<ejs-diagram
#diagram
width="100%"
height="400px"
[getConnectorDefaults]="connDefaults"
[getNodeDefaults]="nodeDefaults"
[layout]="layout"
[nodes]="nodes"
[snapSettings]="snapSettings"
(click)="click($event)"

<ng-template #nodeTemplate let-data>
  <div [attr.test]="test(data)">
    <div>column 1</div>
    <div>column 2</div>
    <div>column 3</div>
  </div>
</ng-template>

_

i will closed topic. Thanks.