Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

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