quasar-qgrid
quasar-qgrid copied to clipboard
How to add a header filter for a field, which is an array
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
Hi @MartijnKuipers,
For now there is not option for this.
I will check If I can do this.
Thanks, Pratik Patel