cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sysadminasaurus
New Member

Make label visible for single gallery item when icon is clicked

I have a 'More options' icon placed in a Gallery that is displayed for each row. When a user selects the icon, a menu label should appear only for the gallery item that contains the selected icon.

 

Currently, the menu label is displayed on all gallery rows. I have tried setting a context variable 'ShowLabel' on the icon OnSelect property and then adding that variable to the visible property of the label. This works for showing the menu label on icon select but I'm still unsure of how to have the label only show for the selected gallery item. Any ideas?

 

sysadminasaurus_0-1634595518617.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @sysadminasaurus ,

You would have to set a Variable on the click of the icon and the Visible of the label dependent on this variable and also the item being selected. All is well until you select another record (the label will show as the Variable is true and this record is now selected) - you need to find a way to reset the Variable when moving away from the record.

View solution in original post

5 REPLIES 5
WarrenBelz
Super User
Super User

Hi @sysadminasaurus ,

Make the Visible of the icon

ThisItem.IsSelected

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

That seems to make the 'more' icon itself visible only for the selected gallery item. I need the "menu" label to only be visible for the selected gallery item when the icon is clicked. For example, if a user clicks the icon they should only see the menu label object in that gallery row and not the others.

Hi @sysadminasaurus ,

Is the icon also in the gallery item and you want have to click that before the label is visible? This will get a bit messy if so - please confirm.

@WarrenBelz Yes, that is correct. Is there a better way to achieve this?

Hi @sysadminasaurus ,

You would have to set a Variable on the click of the icon and the Visible of the label dependent on this variable and also the item being selected. All is well until you select another record (the label will show as the Variable is true and this record is now selected) - you need to find a way to reset the Variable when moving away from the record.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,831)