filter-tree-list
v1.0.3
Published
Filter tree list by key and expression function
Downloads
8
Readme
Filter Tree Array List
🎉 Filter tree list by key and expression function
Demo demo
Install
- NPM: npm i filter-tree-list
- YARN: yarn add filter-tree-list
Usage
Import filterTreeList
to your working files
import { arrayTreeFilter } from 'filter-tree-list';
let records = arrayTreeFilter<TreeModel>(
this.datasource,
(x => x.title.toLowerCase().includes('foo')),
{
childrenKeyName: 'nodes'
}
);
this.datasource
: is your tree source(x => x.title.toLowerCase().includes('foo'))
: second parameter is your filter condition{childrenKeyName: 'nodes'}
: this option is key name of tree source - default value is:children
Author
💻Mohammadreza samani | FrontEnd Developer