Renders a control that toggles the bs_collapse() whose id matches
target, using Bootstrap's declarative data-bs-toggle="collapse"
attributes (no server round trip required).
Arguments
- target
Id of the
bs_collapse()to toggle.- ...
Content (label) and named HTML attributes.
If
TRUE(default), render a<button class="btn">; otherwise render an<a role="button">.- expanded
Initial expanded state of the trigger. Set to
TRUEwhen the target is abs_collapse(open = TRUE)so the initialaria-expanded/.collapsedstate is correct.- class
Extra classes.