[Vuejs]-How to display values from subclasses in quasar q-table

0👍

Since I didn’t have much luck here, but in case someone else comes here, here is the answer that solved it for me from dongwa on github:

You can try using the functional field.
Example:

 const columns = ref([
 // ....,
  {
    name: 'actualDeparture',
    label: 'Actual Departure',
    field: (row)=>row.dischargePortOperations.actualDeparture,
    sortable: true
  }
])

Source: https://github.com/quasarframework/quasar/discussions/15810#discussioncomment-5859518

Leave a comment