I have a screen that is mostly a map with some actions in the footer and a header on top. I want to use the pull to refresh for a user to be able to update some queries I run that draw shapes on the map. But when I put true on Pull To Refresh it refreshes while I am moving the map around.
I only want the pull to refresh to happen when I pull down on my header nowhere else. I have tried putting just the block of PullToRefresh in my header content and some other options but can never seem to get it to work. I was able to make it work through my own custom JS, but I want to use Outsystem's block because it has a nice animation to it.
Any help much appreciated! See attached oml.
Hi @Spencer Buhler ,
in the Outsystems UI block implementing this, the selector of the area you can pull, is hardcoded to the content.
I don't think there is a way to use it differently. You can copy it and adjust for your needs.
See attached your oml updated, i copied the block and the script, added an input to the block so consumer can tell what he needs pulled. See screen 2, it is only acting on pulling the .header part.
in the javascript of the OnReady, i replaced the hardcoded '.content' by this input
Dorine
Perfect, thank you!