dipson88 / treeselectjs

Treeselect on vanilla JS
MIT License
82 stars 15 forks source link

Lazy Loading #71

Closed mackhankins closed 1 year ago

mackhankins commented 1 year ago

How are people approaching lazy loading? It seems like a must for larger datasets.

dipson88 commented 1 year ago

Hello, @mackhankins. I'm sorry for not getting back to you sooner. At this moment I don't think about this. Now we need to use something like an around work. Maybe I can try to add an input text event or something like that, and you can use this event to detect loading. But I need to test it.

dipson88 commented 1 year ago

@mackhankins I've added a search event and searchCallback prop (check documentation). It can help to implement something like lazy loading on your side. Use version 0.9.0