I'm currently working with a range slider that has steps on it. Is there a way to do a tooltip above each step? Here's the current slider code. So at every step I need to put the tooltip over the slider indicator.

<lightning:slider step="250" 
                      min="0" max="2000" 
  • Hi, Ryan, and welcome to SFSE! What's the purpose behind the tooltip on a slider? Why couldn't you use a Path or something? What effect are you trying to achieve? – sfdcfox Aug 23 '18 at 15:16
  • 1
    Please edit your question instead of adding the info into the comments. – gNerb Aug 23 '18 at 15:21

I'm completely confident you can do it. If you're using a built in component I'd look up the definition for the component to see if it has any built in attributes.

Otherwise, you can use this site here to build out the component manually. This will allow you to use javascript to add the tool-tips you need.

Using HTML in lightning components

Since SFDC converts HTML tags into components you might be interested in this article about creating components dynamically.

JavaScript disclaimer

We do to an extend provide Javascript support as it specifically applies to SF such as linking up elements to controller functions, handling events, api usage, etc; however, there are some items that we can't provide extensive support for. For advanced JS support you can reach out to stackoverflow.com

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.