pratik227 / quasar-qgrid

QGrid is a Quasar App Extension. It allows you to filter data for each column, Drag and Drop Rows and also allows you to filter data using header filters.
https://next-quasar-qgrid.netlify.app/
MIT License
112 stars 92 forks source link

How to display object in grid #129

Closed JordiOfRivia closed 7 months ago

JordiOfRivia commented 7 months ago

Lets say you get the following object back from the api call:

      {
          "_id": "12132",
          "externalcode": "1",
          "name": "Doe",
          "address": {
              "street": "Lorem",
              "zipcode": "123",
              "city": "Lorem",
          },
}

How can i display the address object in the grid?

I tried just doing this:

const columns = [
  {
    name: 'city',
    required: true,
    label: 'city',
    field: 'address.city',
    sortable: true,
  },
];

But than the city column stays empty. Even with a formatter.