Posted 20 June 2018, 11:51 pm EST
Hi,
I’m using Flexgrid and Angular5. In my case I’ve a dynamic number of columns. So I’m writing
<wj-flex-grid-column *ngFor="let col of columns.items" [binding]="col"></wj-flex-grid-column>
That means I’ve e.g. the follwing data structure:
[{name: 'a1',type:'a2'},{name: 'b1',type:'b2'}]
Now I need an additional ID for every cell and my datastructur looks like this:
[{name: {value:'a1',id:1},type:{value:'a2',id:2}},{name: {value:'b1',id:3},type:{value:'b2',id:4}}]
How can I do the binding in my wj-flex-grid-column with this setup ? I tried a lot of things
[binding]="col.value"
``` and so on ...
best regards,
Andreas