Is it possible to embed JS into a tooltip to have dynamic text in the navigation bar?



  • I see I can add custom text to the tooltip for a custom route in the navigation bar, I am hoping to add JS to it instead so that the tooltip changes based on the JS. Is this possible without a plugin, or should I look into creating a plugin to do this?


  • Global Moderator

    You're probably better off adding a custom class to the navigation item and then using the custom js in the acp for the rest



  • @PitaJ I was able to do it by giving the nav button a unique ID in the ID section and then just controlling the tooltip/button action in JS under the custom JS section. Surprisingly easy to do as it turns out.


Log in to reply
 

Suggested Topics

  • 3
  • 6
  • 11
  • 3
  • 6
| |