ej2-syncfusion

access nested object with “n” level deep object using square bracket notation

谁说我不能喝 提交于 2020-12-10 13:33:05
问题 I want to take some config object to show some nested data.Here is the demo code As it can be seen, "customer.something" is what I need to access. Now there could be 'N'level of nesting . The grid takes care of it using field='customer.something' . How to do the same using my template <e-column field='customer.something' headerText='Other' editType='dropdownedit' [edit]='editParams' width=120> Here is the HTML file: <ejs-grid #Grid [dataSource]='data' allowSorting='true'> <e-columns> <ng

access nested object with “n” level deep object using square bracket notation

这一生的挚爱 提交于 2020-12-10 13:20:13
问题 I want to take some config object to show some nested data.Here is the demo code As it can be seen, "customer.something" is what I need to access. Now there could be 'N'level of nesting . The grid takes care of it using field='customer.something' . How to do the same using my template <e-column field='customer.something' headerText='Other' editType='dropdownedit' [edit]='editParams' width=120> Here is the HTML file: <ejs-grid #Grid [dataSource]='data' allowSorting='true'> <e-columns> <ng