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

Column Header filter types #329

Open
1 task done
paddymul opened this issue Nov 5, 2024 · 0 comments
Open
1 task done

Column Header filter types #329

paddymul opened this issue Nov 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@paddymul
Copy link
Owner

paddymul commented Nov 5, 2024

Checks

  • I have checked that this enhancement has not already been requested

How would you categorize this request. You can select multiple if not sure

Other (please describe in Issue Description)

Enhancement Description

There are a number of useful column specific filters, especially for numeric colums. These should map to the lowcode UI, probably through quick_command_args.

  1. Only Outliers, only show < q(.01) || > q(.99)
  2. Remove Outliers, only show >q(.01) && < q(.99)
  3. Drop Nulls
  4. Only Nulls
  5. Greater, less than

Pseudo Code Implementation

  const filterParams: INumberFilterParams = {
        filterOptions: [
          "empty",
          {
            displayKey: "evenNumbers",
            displayName: "Even Numbers",
//            predicate: (_, cellValue) => cellValue != null && cellValue % 2 === 0,
            numberOfInputs: 0,
          },
          {
            displayKey: "oddNumbers",
            displayName: "Odd Numbers",
            predicate: (_, cellValue) => cellValue != null && cellValue % 2 !== 0,
            numberOfInputs: 0,
          },
          {
            displayKey: "blanks",
            displayName: "Blanks",
            predicate: (_, cellValue) => cellValue == null,
            numberOfInputs: 0,
          },

https://www.ag-grid.com/react-data-grid/component-filter/

Prior Art

This requires the infinite branch

@paddymul paddymul added the enhancement New feature or request label Nov 5, 2024
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

1 participant