Forum Discussion

amritbhgt's avatar
amritbhgt
Cloud Apps
01-16-2024
Solved

Tooltip on Hover of image

Hi All,

Need Help!!!

I want to add a tooltip on hovering on a image (Blox).

Thanks

  • Hey amritbhgt , while reading the Blox documentation, it appears that there is no specific property to set up a tooltip text for an image. However, you can address this by adding an ID to the image within your Blox widget. Then, include a custom script in the widget. Inside that script, use the "ready" event of the widget, and with a bit of JavaScript, you can add the following:

    const myImage = document.getElementById('natureImage');

    if (myImage) {
    myImage.title = "Beautiful Nature";
    }

1 Reply

Replies have been turned off for this discussion
  • Hey amritbhgt , while reading the Blox documentation, it appears that there is no specific property to set up a tooltip text for an image. However, you can address this by adding an ID to the image within your Blox widget. Then, include a custom script in the widget. Inside that script, use the "ready" event of the widget, and with a bit of JavaScript, you can add the following:

    const myImage = document.getElementById('natureImage');

    if (myImage) {
    myImage.title = "Beautiful Nature";
    }