[Solved] Datatable a small problem with field and a nested field (v0.17.16)
-
Hello, I would like to use a nested field in a column of a datatable
I tried to define this way but it didn’t work.
field: o => o.f
I created a jsfiddle:
I have a workaround from here:
https://github.com/quasarframework/quasar/issues/821slot=“body-cell-o”
{{ props.value.f }}Anyone can help me?
Thank you very much -
https://quasar-framework.org/components/datatable.html
// row Object property to determine value for this column field: 'name', // OR field: row => row.some.nested.prop
Looks like it should be:
row => row.o.f
I changed this line in your fiddle and now it works:
{ label: 'One more', field: row => row.o.f, name: 'o' }
-
So simple and I didn’t understand it
thank you