ngx-treeview : Tree view drop down should show only the parents and children of passed value.




Asked on April 24, 2019

Hi,

I am using ngx-treeview component. I referred the following example:

I have drop down tree view as follows:
drop down 1
I want to show only the parents and children of passed value.
For example if I pass value as Hubli then it should show as follows:
drop down 2

If I type filter text box then it is working properly but I want to do this with code. I tried using onFilterChange() and also with filteredChange event emitter but not getting result as expected.

How to achieve this?



Write Answer











©2024 concretepage.com | Privacy Policy | Contact Us