cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Beat
Helper V
Helper V

Elements are visible while their visible property is evaluated

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?

1 ACCEPTED SOLUTION

Accepted Solutions
MrNappa
Kudo Collector
Kudo Collector

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.

View solution in original post

3 REPLIES 3
MrNappa
Kudo Collector
Kudo Collector

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.

View solution in original post

@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!

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,608)