spec_popover() in Quarto #714
radovan-miletic
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @haozhu233,
I recently needed to use {kableExtra} with popover in Quarto framework. As Quarto relies on Bootstrap 5 (currently v5.1.3 ),
kableExtra::spec_popover()
function wouldn't work.It turns out that solution might be simple with slight adjustments to the spec_popover function, note
data-bs-toggle
,data-bs-placement
, anddata-bs-content
attributes inspec_bs_popover
:Output:
This hack works for me, but I'm wondering if
kableExtra::spec_popover()
function can be further improved for Bootstrap 5. The same stands forkableExtra::spec_tooltip()
function.Thank you!
P.S: If we inspect elements "on the page" an error related with kePrint.js will be spotted (see @haozhu233 's comment) :
Beta Was this translation helpful? Give feedback.
All reactions