Slider Tooltip Appears Static ... Needs to Append to Handle | XM Community
Skip to main content
Solved

Slider Tooltip Appears Static ... Needs to Append to Handle

  • May 26, 2021
  • 2 replies
  • 39 views

Forum|alt.badge.img+3

I have a slider with customized tool tip box. I am using mutation observer to change the displayed tool tip value, because of which I have to disable the 'Show values' option. The problem is without 'Show values' enabled, the tool tip div with the tool tip box is currently misplaced. How can I attach the tool tip to the slider handle so that it moves along with it rather than stays static at bottom left. Any help will be welcome.

slider1-img.JPG

Best answer by ahmedA

Position absolute.
Mutation observer on handle.
Get left/right value of handle.
Apply it to your box.

2 replies

Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • Answer
  • May 27, 2021

Position absolute.
Mutation observer on handle.
Get left/right value of handle.
Apply it to your box.


Forum|alt.badge.img+3
  • Author
  • Level 2 ●●
  • May 28, 2021

ahmedA
Thank you! That does it. I had the mutation observer on '~1~true-result', not on the handle. Greatly apreicate you sharing your expertise.