Skip to content

Filter a row on multiple fields #123

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

Closed
arcadeJHS opened this issue Aug 29, 2023 · 1 comment
Closed

Filter a row on multiple fields #123

arcadeJHS opened this issue Aug 29, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@arcadeJHS
Copy link

arcadeJHS commented Aug 29, 2023

Pull request #124

I would like to filter rows depending on the value of two related fields.
For instance, let's say we've got two fields, startDate and endDate

[
...
{ startDate: "2023-10-10T10:00:00", endDate: "2023-11-10T10:00:00" },
...
]

and I would like to filter that row if it's matching with today date:

startDate < Date.now() < endDate

Given the fact that currently each filter definition in "ds-filter-fields" receives the value of the key field only, is it possible, and how?

Thank you!

@kouts kouts added the enhancement New feature or request label Aug 29, 2023
@arcadeJHS
Copy link
Author

Pull request #124, merged in v3.6.0, solves the issue.

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

No branches or pull requests

2 participants