mazdik / ng-mazdik

Angular UI component library
https://mazdik.github.io/ng-mazdik
MIT License
89 stars 34 forks source link

JSON structure generalisation #32

Closed suryakanta101 closed 5 years ago

suryakanta101 commented 5 years ago

Hello @mazdik

you have defined JSON as per the datatable demand.. If we want to change the json attribute names (i.e data, children to dataEntity, ChildrenEntity) different name, then do we need to change the core files in tree.ts , tree-node.ts etc ???

[ { "id": "ASMODIANS", "name": "ASMODIANS", "dataEntity": { "name": "Defunct", "gender": "MALE", "cube_size": "1", "exp": 777777 }, "ChildrenEntity": [ { "id": "MALE", "name": "MALE",

mazdik commented 5 years ago

Need to change JSON attribute names. Or you can use TreeFlattener and TreeBuilder.