You can only update the header of the bucket_list.
To update any of the labels or rank list text, use update_rank_list()
instead.
Usage
update_bucket_list(
css_id,
header = NULL,
session = shiny::getDefaultReactiveDomain()
)Arguments
- css_id
This is the css id to use, and must be unique in your shiny app. This defaults to the value of
group_id, and will be appended to the value "bucket-list-container", to ensure the CSS id is unique for the container as well as the embedded rank lists.- header
Text that appears at the top of the bucket list. (This is encoded as an HTML
<p>tag, so not strictly speaking a header.) Note that you must explicitly provideheaderargument, especially in the case where you want the header to be empty - to do this useheader = NULLorheader = NA.- session
The
sessionobject passed to function given toshinyServer.
Examples
## Example of a shiny app that updates a bucket list and rank list
if (interactive()) {
app <- system.file(
"shiny/update/app.R",
package = "sortable"
)
shiny::runApp(app)
}