collapsible bootstrap button in quarto #3100
Unanswered
shamindras
asked this question in
Q&A
Replies: 1 comment 3 replies
-
You are missing several components. Screen.Recording.2022-10-29.at.11.35.06.movQuarto document---
title: "Untitled"
format: html
---
```{=html}
<button class="btn btn-primary" type="button" data-bs-toggle="collapse" data-bs-target="#collapseExample" aria-expanded="false" aria-controls="collapseExample">
Button with data-bs-target
</button>
<div class="collapse" id="collapseExample">
<div class="card card-body">
Some placeholder content for the collapse component. This panel is hidden by default but revealed when the user activates the relevant trigger.
</div>
</div>
``` Also, because this is a 100% HTML issue, you'll get better/quicker answer on StackOverflow or other platform. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
On my quarto blog, I would like to create a collapsible toggle text button.
In RStudio, I tried to follow this basic example and created the following test:
This results in the following being rendered on my blog in RStudio, but unfortunately the clicking the
abstract
button does not toggle expand or collapse to the demo text.The actual source for my site is here, and this is the resulting output.
Could anyone please explain how to get this toggle button working?
Beta Was this translation helpful? Give feedback.
All reactions