rstudio / rstudio/bslib

`input_task_button()`: Allow updating the labels and icons

Open
#1,229 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
SCSS
Stars
569
Forks
72
Avg merge
1d 2h
Merged PRs (30d)
5

Description

I'm trying to update the label of a input_task_button and I get this error:

Error in bslib::update_task_button("go", label = "bar") : 
  `...` must be empty.
✖ Problematic argument:
• label = "bar"

Here's the example:

library(shiny)

ui <- fluidPage(
  bslib::input_task_button("go", "foo")
)

server <- function(input, output, session) {
  bslib::update_task_button("go", label = "bar")
}

shinyApp(ui, server)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the supplied Shiny example and tracing bslib::input_task_button() and bslib::update_task_button(). Check how the update arguments are validated and how labels and icons are represented; done means the example can update the button label without the ... error and the requested label and icon updates work.

Written by the indexing model from the issue text.

Assessment

Tech stack
bootstrap, r
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.