CirclonGroup / angular-tree-component

A simple yet powerful tree component for Angular (>=2)
https://angular2-tree.readme.io/docs
MIT License
1.1k stars 492 forks source link

Pagination #880

Open gituser3000 opened 3 years ago

gituser3000 commented 3 years ago

In order to deal with rendering large amounts of data, angular-tree-component has a virtual scroll. However, it is not possible to load small chunks of data on demand. Is it possible to implement this feature? For example, we could add "load more.." button

tobiasengelhardt commented 3 years ago

@gituser3000 It's possible to build this with the current tree version. Take a look at this stackblitz. It's an error repo for a virtual scroll issue, so just set virtualScroll: false in the app.component.ts to see it working. You can build your own version based on that. We are using a variation of that for years now. Of course it requires some logic outside the tree to keep track of everything. It would be nice to move some of that logic inside the tree and add some nicer error handling.