Skip to content

Commit 3060945

Browse files
Update dynamic children example.
1 parent 6f67390 commit 3060945

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/components/Examples/DynamicChildren.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { AngularTreeGridComponent } from 'angular-tree-grid';
1717
Children can be loaded dynamically. Let's suppose we want to load children on expand. Then set load_children_on_expand to true and listen to the expand event. See Below.
1818
</p>
1919
<p>
20-
A child can be treated as a leaf node(won't have expand icon) if dynamic_node_leaf is set to true in the object. See below.
20+
A child can be treated as a leaf node(won't have expand icon) if node_leaf is set to true in the object. See below.
2121
</p>
2222
<iframe #iframe type="text/javascript" width="100%" height="400px" style="margin: 50px 0 0 0;border:0"></iframe>
2323
`
@@ -74,7 +74,7 @@ export class DynamicChildrenComponent {
7474
const row_data = e.data;
7575
if (row_data.id === 1) {
7676
setTimeout(() => {
77-
e.resolve([{ id: 4, name: 'Ashok', age: 60, weight: 60, gender: 1, phone: 7930343463, dynamic_node_leaf: true},
77+
e.resolve([{ id: 4, name: 'Ashok', age: 60, weight: 60, gender: 1, phone: 7930343463, node_leaf: true},
7878
{ id: 5, name: 'Sam', age: 40, weight: 60, gender: 1, phone: 7930343463},
7979
{ id: 6, name: 'Sriya', age: 36, weight: 60, gender: 1, phone: 7930343463}]);
8080
}, 2000);

0 commit comments

Comments
 (0)