daattali / daattali/shiny-colour-gradient-input
Broken code
- Dominant language
- R
- Stars
- 6
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
```
library(shiny)
source("gradientInput.R")
ui <- fluidPage(
gradientInputUI("cols"),
tableOutput("result"),
actionButton("reset", "Reset")
)
server <- function(input, output, session) {
gradient <- callModule(gradientInput, "cols", init_cols = c(10, 50, 70))
output$result <- renderTable(gradient$result())
observeEvent(input$reset, {
gradient$reset()
})
}
shinyApp(ui, server)
```
The above code no longer generate the gradient input expected widget with trhee inital colors not sure why and how this was broken
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by running the supplied Shiny example and inspect gradientInput.R, focusing on gradientInputUI, gradientInput, and the init_cols call. Done means the gradient input widget renders again with the three initial colors 10, 50, and 70, and the reset action still works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100