quasar-qgrid icon indicating copy to clipboard operation
quasar-qgrid copied to clipboard

How to add a header filter for a field, which is an array

Open MartijnKuipers opened this issue 1 year ago • 1 comments

Hi,

I have records for members, where I have a field, which is an array of tags, e.g., ['coach','player']. Somethings like this:

columns: [
    { name: "name", label: "name", field: "name" },
    { name: "function", label: "function", field: "function" }
]

Now, I have 2 problems:

  • How can I add a filter of type 'select' for the function-field?
  • How can I format the function-field to show as: function.join(', ')? (I can do it with a body-prop, but then I don't know what to add for the select-column as my table is selection="multiple"

Other than that, it has been great. Much easier than usin QTable directly

MartijnKuipers avatar May 03 '23 15:05 MartijnKuipers

Hi @MartijnKuipers,

For now there is not option for this.

I will check If I can do this.

Thanks, Pratik Patel

pratik227 avatar May 10 '23 13:05 pratik227