# Adding a simple tooltip while firing an event

**URL:** <https://forum.bpmn.io/t/adding-a-simple-tooltip-while-firing-an-event/1982>\
**Category:** Developers\
**Created:** [December 17, 2017, 10:39am UTC](https://forum.bpmn.io/t/adding-a-simple-tooltip-while-firing-an-event/1982 "2017-12-17T10:39:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![AsmaaSabry](https://forum.bpmn.io/letter_avatar_proxy/v4/letter/a/e36b37/32.png) [@AsmaaSabry](https://forum.bpmn.io/u/AsmaaSabry)\
**Post date:** [December 17, 2017, 10:39am UTC](https://forum.bpmn.io/t/adding-a-simple-tooltip-while-firing-an-event/1982/1 "2017-12-17T10:39:10Z")

</div>

Hi i need to add a simple tooltip while firing element.hover event of task that contains a text for each task

thanks

---

<div class="post-metadata">

**Author:** ![nikku](https://forum.bpmn.io/user_avatar/forum.bpmn.io/nikku/32/5130_2.png) [@nikku](https://forum.bpmn.io/u/nikku)\
**Post date:** [December 20, 2017, 7:44am UTC](https://forum.bpmn.io/t/adding-a-simple-tooltip-while-firing-an-event/1982/2 "2017-12-20T07:44:54Z")

</div>

Please give a little bit more background. What did you try?

---

<div class="post-metadata">

**Author:** ![AsmaaSabry](https://forum.bpmn.io/letter_avatar_proxy/v4/letter/a/e36b37/32.png) [@AsmaaSabry](https://forum.bpmn.io/u/AsmaaSabry)\
**Post date:** [January 14, 2018, 9:54am UTC](https://forum.bpmn.io/t/adding-a-simple-tooltip-while-firing-an-event/1982/4 "2018-01-14T09:54:07Z")

</div>

Thanks for the reply! Very much appreciated  
I will try to explain more  
we are trying to add tool tip like this  
 ![tooltip](https://forum.bpmn.io/uploads/default/original/1X/064b2543a63cfd3ba3cd72130d384f3556ac677b.png)  
that contains ElementsLabel.Label  
rather than this shape if the label text is large  
 ![tooltip2](https://forum.bpmn.io/uploads/default/original/1X/79d8a5f5f77875daab034f9e478e156c2245e463.png)  
thanks 🙂

---

<div class="post-metadata">

**Author:** ![nikku](https://forum.bpmn.io/user_avatar/forum.bpmn.io/nikku/32/5130_2.png) [@nikku](https://forum.bpmn.io/u/nikku)\
**Post date:** [January 15, 2018, 7:44am UTC](https://forum.bpmn.io/t/adding-a-simple-tooltip-while-firing-an-event/1982/5 "2018-01-15T07:44:19Z")

</div>

You’d need to do two things:

- customize the way we render labels (check `BpmnRenderer`) for this
- add a tooltip on top of the element with the full name (pick any tooltip library out there)

You may react to the canvas being changed for repositioning the tooltip via the `canvas.viewbox.changed` event. For good user experience, I suggest you to hide the tooltip during canvas moving (start indicated via `canvas.viewbox.changing` event).

Hope this helps.

---

<div class="post-metadata">

**Author:** ![AsmaaSabry](https://forum.bpmn.io/letter_avatar_proxy/v4/letter/a/e36b37/32.png) [@AsmaaSabry](https://forum.bpmn.io/u/AsmaaSabry)\
**Post date:** [January 16, 2018, 6:47am UTC](https://forum.bpmn.io/t/adding-a-simple-tooltip-while-firing-an-event/1982/6 "2018-01-16T06:47:43Z")

</div>

thanks alot i’ll try

---

<div class="post-metadata">

**Author:** ![blake.palmer](https://forum.bpmn.io/user_avatar/forum.bpmn.io/blake.palmer/32/495_2.png) [@blake.palmer](https://forum.bpmn.io/u/blake.palmer)\
**Post date:** [January 16, 2018, 5:50pm UTC](https://forum.bpmn.io/t/adding-a-simple-tooltip-while-firing-an-event/1982/7 "2018-01-16T17:50:27Z")

</div>

I did something similar to this recently but also required the ability to have text with HTML tags in the popup. I used bootstrap tooltips ([https://getbootstrap.com/docs/4.0/components/tooltips/](https://getbootstrap.com/docs/4.0/components/tooltips/)) and it worked well for our situation.

---

<div class="post-metadata">

**Author:** ![AsmaaSabry](https://forum.bpmn.io/letter_avatar_proxy/v4/letter/a/e36b37/32.png) [@AsmaaSabry](https://forum.bpmn.io/u/AsmaaSabry)\
**Post date:** [February 4, 2018, 11:37am UTC](https://forum.bpmn.io/t/adding-a-simple-tooltip-while-firing-an-event/1982/8 "2018-02-04T11:37:34Z")

</div>

I did it with the help of this link

> <https://stackoverflow.com/questions/29489468/popup-tooltip-for-rectangular-region-drawn-in-canvas>

  
by passing the canvas while firing element.hover

---

<div class="post-metadata">

**Author:** ![tianxiameiren](https://forum.bpmn.io/user_avatar/forum.bpmn.io/tianxiameiren/32/5597_2.png) [@tianxiameiren](https://forum.bpmn.io/u/tianxiameiren)\
**Post date:** [May 29, 2025, 3:13am UTC](https://forum.bpmn.io/t/adding-a-simple-tooltip-while-firing-an-event/1982/9 "2025-05-29T03:13:24Z")

</div>

Could you please give a example about your solution? Thank you

---

<div class="post-metadata">

**Author:** ![nikku](https://forum.bpmn.io/user_avatar/forum.bpmn.io/nikku/32/5130_2.png) [@nikku](https://forum.bpmn.io/u/nikku)\
**Post date:** [July 22, 2025, 3:13pm UTC](https://forum.bpmn.io/t/adding-a-simple-tooltip-while-firing-an-event/1982/10 "2025-07-22T15:13:08Z")

</div>

Closed on July 22, 2025, 3:13pm UTC


