New features
- Added
tooltip()
,update_tooltip()
, andtoggle_tooltip()
for easy creation (and server-side updating) of Bootstrap tooltips (a way to display additional information when focusing (or hovering over) a UI element). (#662) - Added
popover()
,update_popover()
, andtoggle_popover()
for easy creation (and server-side updating) of Bootstrap popovers. Popovers are similar to tooltips, but are more persistent, and should primarily be used with button-like UI elements (e.g.,actionButton()
,bsicons::bs_icon()
, etc). (#702) - Added
input_switch()
andupdate_switch()
for easy creation (and server-side updating) of a Bootstrap's switch input (an on-off toggle for binary input values). (#483) - Added two new toggle functions:
toggle_switch()
for toggling the state of aninput_switch()
element andtoggle_sidebar()
for toggling the state of asidebar()
element (sidebar_toggle()
remains as an alias oftoggle_sidebar()
). (#709)
Improvements
- Closed quarto-dev/quarto-cli#6081:
{bslib}
's components (e.g.,card()
,sidebar()
, etc.) now work more sensibly in Quarto docs. (#664) - Closed #672:
sidebar()
gainsgap
andpadding
arguments to control the vertical gap between items in the sidebar and the padding around the sidebar's content. (#725)
Bug fixes
- Closed #636: Outputs in sidebars now work as expected when an initially-closed sidebar is opened. (#624)
- Closed #640:
accordion()
no longer errors when anid
isn't supplied inside a Shinysession
context. (#646) - Closed #639:
nav_panel()
'sicon
argument now supports genericHTML()
, meaning that things likebsicons::bs_icon()
andfontawesome::fa()
can be used as values. (#645) - Light-styled buttons in bslib-provided Bootswatch themes are now consistent with their design in Bootswatch. Previously, they were inadvertently styled similarly to secondary buttons. (#687)
- Closed #727:
layout_column_wrap()
now enforces equal column widths by avoiding layout issues caused by grid container overflow. (#729)