No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    How to display an array inside q-table column ?

    Help
    2
    2
    972
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • O
      omar.rabee last edited by

      So, basicallay I got an array of objects and each object has got multiple properties; one of them is an array that I want to display as a column inside q-table, is this possible to configure in the columns prop ?

      beets 1 Reply Last reply Reply Quote 0
      • beets
        beets @omar.rabee last edited by

        @omar-rabee Try to add this to the column definition:

        columns: [
          {
            name: 'something',
            label: 'Something',
            field: 'something',
        
            format: (val, row) => val.join(', ') // this will format it as a comma separated value
          }
        ]
        
        1 Reply Last reply Reply Quote 1
        • First post
          Last post