I have a BrowseGallery with some indicators (buttons, images or icons) whose Visible property depends on a lookup value.
My problem is that all of them show while the gallery is loading, and then disappear based on the visible formula evaluation.
Is there a way to hide them until the gallery is loaded?
Solved! Go to Solution.
I'm not sure if it's exactly what you need, but maybe you could use a construction like this.
Set the Visible property of the elements you want hidden initally to 'showControls && (your additional visibility logic)'
Then, in the OnVisible of your page, use:
UpdateContext({ showControls: false });
ClearCollect( galleryItems, /*(load logic for your gallery items)*/ );
UpdateContext({ showControls: true });
And use the 'galleryItems' collection as source for your gallery.
I'm not sure if it's exactly what you need, but maybe you could use a construction like this.
Set the Visible property of the elements you want hidden initally to 'showControls && (your additional visibility logic)'
Then, in the OnVisible of your page, use:
UpdateContext({ showControls: false });
ClearCollect( galleryItems, /*(load logic for your gallery items)*/ );
UpdateContext({ showControls: true });
And use the 'galleryItems' collection as source for your gallery.
@MrNappathanks for the prompt response. This should do the trick, and I'll add a loading spinner. Will let you know after the Easter Break.
@MrNappa I implemented it and it works to some extent: the images still pop up for a short moment when the gallery initially loads, and then disappear all at once before the desired ones come back individually, which is slightly better than before. Thanks again!
User | Count |
---|---|
256 | |
103 | |
92 | |
47 | |
37 |