web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Show text when the mou...
Power Apps
Answered

Show text when the mouse hovers over the icons in Gallery

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

I have a Gallery and I insert icon there for each desk (Desk 1 & Desk 2)

How can I show text when the mouse hovers over the icons in Gallery.

 

icon 1-> it will show "Desk 1" name

icon 2 -> it will show "Desk 2" name

Desk 1 & Desk 2 are stored in DeskName column in DeskInfo SharePoint list.

 

I tried to use "Tooltip" but it doesn't work for each desk.

kinghnvn_1-1640010499666.png

 

@StalinPonnusamy 

@Ramole 

Thanks.

 

Categories:
I have the same question (0)
  • adamtj Profile Picture
    79 on at

    Hi @kinghnvn ,

    How do your collection/table look for your gallery? You could add a field in that table eg "IconToolTip" and set uniqe text on each item in the table. Then set the tooltip property on the icon to ThisItem.IconToolTip.

    Something like this?

    Table(
     {
     Title: "Desk 1",
     OtherField: "Something else",
     IconToolTip: "This is Desk 1"
    
     },
     {
     Title: "Desk 2",
     OtherField: "Something else",
     IconToolTip: "This is Desk 2"
    
     },
     {
     Title: "Desk 3",
     OtherField: "Something else",
     IconToolTip: "This is Desk 3"
    
     }
    )

     

  • Verified answer
    StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @kinghnvn 

     

    Set the Icon Tooltip to ThisItem.DeskName.

     

    In my example, its locname

    StalinPonnusamy_0-1640014273009.png

     

    StalinPonnusamy_1-1640014356540.png

     

    I just tested to make sure this works. Are you saying the tooltip is shown for some but not for all?


    Thanks,
    Stalin - Learn To Illuminate

  • kinghnvn Profile Picture
    on at

    Hi @StalinPonnusamy 

     

    Can we show tooltip for Employee name booked the desk?

     

    With(
    {
    item: Filter(
    OfficeBooking,
    BookingDate = ToDate
    )
    },
    LookUp(
    item,
    Office.Id = MainGallery.Selected.ID
    ).Employee.DisplayName
    )

     

    -> I just change "Office.Id = MainGallery.Selected.ID" to Office.Id = ThisItem.ID" Is that OK?

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @kinghnvn

     

    That's definitely possible.

     

    1. We need to use time as well with Date since desk can be booked for multiple employees on a single day

    2.  You will have a performance impact If each icon accesses the data source to display the tooltip. So we need to use Collection to avoid performance issues. Collect the booked desks for the selected date and use the collection to show the tooltip.


    Thanks,
    Stalin - Learn To Illuminate

  • kinghnvn Profile Picture
    on at

    Thank you so much.

    For item 2, I don't really understand , I don't know how to do that 😞

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @kinghnvn 

     

    Set the Onchange property of the Datepicker to

    ClearCollect(ColOfficeBooking, Filter(OfficeBooking, 
    BookingDate = ToDate
    )

     

    Set the Tooltip property of the icon to

     

    LookUp(
    ColOfficeBooking,
    Office.Id = ThisItem.ID
    && //Add your time slot as well like displaymode
    ).Employee.DisplayName

     


    Thanks,
    Stalin - Learn To Illuminate

  • kinghnvn Profile Picture
    on at

    thank you @StalinPonnusamy 

     

    I don't use the Datepicker for a Book Date only.

    I'm using a Calendar to select a date or multiple dates.

     

    kinghnvn_0-1640054733584.png

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @kinghnvn 

     

    Do you have any other event when you select date(s) from Calendars like OnSelect or OnChange?

     


    Thanks,
    Stalin - Learn To Illuminate

  • kinghnvn Profile Picture
    on at

    No, but I have a Continue button to next after select Date and slot time.

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    That's good. Definitely, we can use the continue button click event. Please try this. 

     

    Clear(ColOfficeBooking)
    ForAll(DateDiff(Calander1.StartDate, Calander1.EndDate),
    Collect(ColOfficeBooking, Filter(OfficeBooking, 
    BookingDate = DateAdd(Calander1.StartDate, ThisRecord.Value,Days))
    )
    )

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard