-
DescriptionQuarto has Bootstrap built-in. Thus I supposed that the Bootstrap tooltips would work. However, the following code (as suggested in the previous link) doesn't work as expected:
---
title: "quarto expt lab"
---
This is a Quarto website.
To learn more about Quarto websites visit <https://quarto.org/docs/websites>.
```{=html}
<a href="#" data-toggle="tooltip" data-placement="top" title="Hooray!">Hover</a>
<script>
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip();
});
</script>
``` Nothing happens if I hover or click on "Hover". |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
When you use Raw HTML blocks |
Beta Was this translation helpful? Give feedback.
In addition, if you use third party documentation instead of the official Bootstrap, there is definitely no warranty it is going to work.
See https://getbootstrap.com/docs/5.3/components/tooltips/.
When you do follow the proper documentation and put the script in the right place:
Screen.Recording.2023-07-14.at.01.41.50.mov