Skip to content

toolbar_download_button() #1292

@jack-davison

Description

@jack-davison

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)
  )
)
Image

Cheers!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions