Skip to content

Commit

Permalink
refactor: add comment to example code
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Sobolewski committed Oct 2, 2023
1 parent 3dd96ea commit b264085
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inst/examples/CommandBar.R
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ ui <- function(id) {
server <- function(id) {
moduleServer(id, function(input, output, session) {
commandBarItemClicked <- reactiveVal()
observeEvent(input$newItem, commandBarItemClicked("newItem clicked"))
observeEvent(input$upload, commandBarItemClicked("upload clicked"))
observeEvent(input$newItem, commandBarItemClicked("newItem clicked (explicitly observed)"))
observeEvent(input$upload, commandBarItemClicked("upload clicked (explicitly observed)"))
output$commandBarItems <- renderText(commandBarItemClicked())
output$commandBar <- renderText(input$commandBar)
})
Expand Down

0 comments on commit b264085

Please sign in to comment.