Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MartijnKuipers opened this issue May 3, 2023 · 1 comment
Open

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

MartijnKuipers opened this issue May 3, 2023 · 1 comment

Comments

@MartijnKuipers
Copy link

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

@pratik227
Copy link
Owner

Hi @MartijnKuipers,

For now there is not option for this.

I will check If I can do this.

Thanks,
Pratik Patel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants