Skip to content

Conversation

DmitriyShiryaev
Copy link

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'});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant