jquery-treegrid icon indicating copy to clipboard operation
jquery-treegrid copied to clipboard

The performance of operations expand, collapse improved; Support of interactive tree filter

Open DmitriyShiryaev opened this issue 8 years ago • 0 comments

The performance of operations expand, collapse improved

There was a low performance in case the tree have many nodes, 1500 for example. This patch fixes it. Cookies functionality was not tested.

Support of interactive tree filter

This patch allows the user filter the tree branches by string. Filtered tree shows the nodes matched filter string and all its ancestors and all its descendants. Expand/collapse functions work on filtered tree. Cookies functionality was not tested

Interfaces

Apply filter

Format: $('<the tree selector>').treegrid('filter', '<filter string>'); Example: $('#pt-file-tree').treegrid('filter', 'cpp');

Cancel filter

Format: $('<the tree selector>').treegrid('filter', ''); Example: $('#pt-file-tree').treegrid('filter', '');

Set the filter on initialization (not tested)

Format: $('<the tree selector>').treegrid({filter: '<filter string>'}); Example: $('.pt-file-tree').treegrid({filter: 'cpp'});

DmitriyShiryaev avatar Sep 01 '16 07:09 DmitriyShiryaev