I have a problem.
i have a scrollView and i want to empty it before loading its content especially when i refresh it.
i have : scrollPhotos and i tried scrollPhotos.children =  whithout result.
can anyone help me please.
How about using a quick and dirty (but legit) technique.
Add your scrollview as normal, add a normal view inside the scrollview, set this with any layout property you may have set the scrollview - key though is declare this view as a variable you can refer to later.
Then add all your normal child elements to the internal view.
When you want to clean up call;
scrollview.remove(normalview);This will remove everything without having to worry about how.
You cn add this in any style of code you are using, but an external
clean function exposed from a CommonJS file will be the cleanest, as the scope is handled.
Think you can help? Login to answer this question!