Answer the question
In order to leave comments, you need to log in
How to access an array within an array using a string in a quasar table?
There is a table from the examples on the quasar website . And in order to show some data in the columns of the table, we need to specify what
{ name: 'Name'', label: 'Label', field: 'Field' },
const seed = [
{
name: 'Frozen Yogurt',
calories: 159,
Field: 3,
carbs: 24,
protein: 4.0,
sodium: 87,
calcium: '14%',
iron: '1%'
}
const seed = [
{
name: 'Frozen Yogurt',
calories: 159,
Field: [
someField: 2,
some: 1,
Field: 3
],
carbs: 24,
protein: 4.0,
sodium: 87,
calcium: '14%',
iron: '1%'
}
Answer the question
In order to leave comments, you need to log in
If you look at the dock
,
then field can be set in 2 ways
{
// row Object property to determine value for this column
field: 'name',
// OR field: row => row.some.nested.prop,
}
{ ..., field: row => row.Field.someField }
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question