angular / angular/components

mat-tree should have a filtering feature

Open
#11,505 23 comments 47 reactions 0 assignees View on GitHub
area: cdk/tree feature needs: discussion P4
Dominant language
TypeScript
Stars
25k
Forks
6.8k
Avg merge
1d 8h
Merged PRs (30d)
91

Description

#### Feature request, or proposal:
Filtering through tree nodes is a very useful feature, especially to reduce the size of tree and finding out the desired node(s) quickly.

#### What is the expected behavior?
There should be an input box above mat-tree. As you enter the text, it will filter through the tree and renders the tree based on the content in the input box.

#### What is the current behavior?
Filtering feature is not available in mat-tree component.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the mat-tree component and its current public behavior to understand how tree nodes are represented and rendered. Define the filtering interaction and confirm that entering text reduces the displayed tree to matching nodes before adding coverage for the expected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.