Hi,
I want to create a generic configurable component that contains only a "ejs-grid" but the "e-columns" should be provided from the outside when using it. Moreover I need to allow to provide "e-column"'s with template and others without template.
My intention is to have at the end something like this but I can't make it work:
. Generic component "my-generic-grid" html:
<ejs-grid [dataSource]='data'>
<ng-content>ng-content>
ejs-grid>
. Using this component from other one like this:
<my-generic-grid [config]="config">
<e-column field="user" headerText='User'>e-column>
<e-column headerText='Check'>
<ng-template #template let-data columnTemplate>
<input type="checkbox" checked>
ng-template>
e-column>
my-generic-grid>
Do you know if something like this is possible?
thanks