syncfusion / ej2-angular-ui-components

Syncfusion Angular UI components library offer more than 50+ cross-browser, responsive, and lightweight angular UI controls for building modern web applications.
https://www.syncfusion.com/angular-ui-components
Other
276 stars 114 forks source link

how to set template for Diagram hierarchical tree #240

Closed messxay closed 2 years ago

messxay commented 2 years ago

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

messxay commented 2 years ago

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)">

column 1
column 2
column 3

_

i will closed topic. Thanks.