Open hungdev opened 4 years ago
im using filterTreeNode props and func is:
filterTreeNode
filterFunction = (input, treeNode) => { const compare1 = treeNode.props.title.toLowerCase(); const compare2 = input.toLowerCase(); return compare1.indexOf(compare2) >= 0; };
But it always trigger when i type something to search, when i have large data, it will response slowly. So i want to use debounce (lodash) to handle trigger filter. Could you tell me how to use it. Thanks!
@afc163
Hi is there a plan to add a debounce option for the search? Thanks!
Any progress ?
im using
filterTreeNode
props and func is:But it always trigger when i type something to search, when i have large data, it will response slowly. So i want to use debounce (lodash) to handle trigger filter. Could you tell me how to use it. Thanks!