We are on JET version 10.1.0. We are using ojTree component and the size of data rendered with the tree is huge. I have a use case, given the ojTree element, I need the child elements which are visible in the view port.
I see that there are ways to find if a given element is visible in view port, however there is no working utility available which will accept a parent element and return its children which are visible in the view port.
I can get the children of the tree and iterate through them to check which ones are visible in the viewport, however given the size of the data we are dealing with, that would be an expensive operation and I am looking for a util with optimized performance.
Can anyone suggest the most efficient way to do this?