Morning folks,
I've been playing with the dev version of {bslib} incl. the toolbar options and they're really neat.
I was curious whether it'd be possible to include a toolbar_download_button() to accompany the toolbar_input_button()?
I'm keen to do something like the below where you have a table in a card and a nice elegant "download" option in the card header.
card(
card_header(
"Flower Data",
toolbar(
align = "right",
toolbar_download_button("btn", label = "Download", icon = icon("download")) # maybe this icon is the default?
)
),
card_body(
reactable::reactable(iris)
)
)
Cheers!
Morning folks,
I've been playing with the dev version of
{bslib}incl. the toolbar options and they're really neat.I was curious whether it'd be possible to include a
toolbar_download_button()to accompany thetoolbar_input_button()?I'm keen to do something like the below where you have a table in a card and a nice elegant "download" option in the card header.
card( card_header( "Flower Data", toolbar( align = "right", toolbar_download_button("btn", label = "Download", icon = icon("download")) # maybe this icon is the default? ) ), card_body( reactable::reactable(iris) ) )Cheers!