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

feat(tree-grid): adding matching records only filtering strategy #10077

Merged
merged 11 commits into from
Sep 27, 2021

Conversation

viktorkombov
Copy link
Contributor

@viktorkombov viktorkombov commented Sep 1, 2021

Closes #9923

Additional information (check all that apply):

  • Bug fix
  • New functionality
  • Documentation
  • Demos
  • CI/CD

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code (test guidelines)
  • This PR includes API docs for newly added methods/properties (api docs guidelines)
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated with them

@viktorkombov viktorkombov marked this pull request as ready for review September 2, 2021 14:47

expect(treeGrid.rowList.length).toBe(3);

const filterStrategy = new MatchingRecordsOnlyFilteringStrategy();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Defining this const seems obsolete.

@@ -74,3 +74,46 @@ export class TreeGridFormattedValuesFilteringStrategy extends TreeGridFilteringS
return value;
}
}

export class MatchingRecordsOnlyFilteringStrategy extends TreeGridFilteringStrategy {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather have some hint to TreeGrid in the class name.

gedinakova
gedinakova previously approved these changes Sep 13, 2021
@ddaribo ddaribo added 💥 status: in-test PRs currently being tested ✅ status: verified Applies to PRs that have passed manual verification and removed ❌ status: awaiting-test PRs awaiting manual verification 💥 status: in-test PRs currently being tested labels Sep 15, 2021
@kdinev kdinev merged commit d0cadec into master Sep 27, 2021
@kdinev kdinev deleted the vkombov/feat-9923-master branch September 27, 2021 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
grid: tree-grid version: 12.2.x ✅ status: verified Applies to PRs that have passed manual verification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IgxTreeGrid: display only filtered records
6 participants