blinry / almightree

A jQuery plugin which makes large nested lists easier to navigate
http://morr.cc/almightree/
Other
22 stars 2 forks source link

Lazy loading #1

Open metric152 opened 8 years ago

metric152 commented 8 years ago

We're trying to move away from an old jquery and this plug in looks very promising. Are there any plans to add lazy loading? That would make it perfect for us.

blinry commented 8 years ago

Hey Ernest, thanks for your interest! Could you describe in more detail what kind of functionality you would need? Do you mean lazy loading of images? Of parts of the text tree?

Also, I'd be interested in what old plugin you would like to replace! :)

metric152 commented 8 years ago

This is the plugin we're currently using: http://bassistance.de/jquery-plugins/jquery-plugin-treeview/

When we create a tree it's a collection of folders that have might have children and grand children. We can't load everything in all at once

When I click on folder 3 I need to query the server to see if it has any children. If so I need to add them to that branch afterward

Also if I click on folder 1 I want to add it's children

Same goes if I click on a child folder

blinry commented 8 years ago

Ah, I see! I currently have other priorities, but should I integrate lazy loading I will let you know!

Note that with lazy loading the built-in search feature will give confusing, incomplete and inconsistent results, depending on how much of the tree has already been loaded.