Jump to content

How to enable bootstrap 4 tooltips with several options?


vitalnet

Recommended Posts

I can enable all bootstrap 4 tooltips with: 

$('[data-toggle="tooltip"]').tooltip();

I can add trigger option as follows:

$('[data-toggle="tooltip"]').tooltip({trigger:'hover'});

How do I use several options? I want to enable all tooltips with both trigger:'hover' and html:true options. I tried some things, but it did not work. I know I could insert data-html=true into the HTML code, but it seems better to enable all the tooltips in one place. Thank you

Edited by vitalnet
add tag
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...