Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(examples): Don't repeat caption ID #179

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions examples/r/003-reactivity/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ui <- page_sidebar(
# Note: Changes made to the caption in the textInput control
# are updated in the output area immediately as you type
textInput(
inputId = "caption",
inputId = "caption_text",
label = "Caption:",
value = "Data Summary"
),
Expand Down Expand Up @@ -72,10 +72,10 @@ server <- function(input, output) {
# 2. New caption is pushed back to the browser for re-display
#
# Note that because the data-oriented reactive expressions
# below don't depend on input$caption, those expressions are
# NOT called when input$caption changes
# below don't depend on input$caption_text, those expressions are
# NOT called when input$caption_text changes
output$caption <- renderText({
input$caption
input$caption_text
})

# Generate a summary of the dataset ----
Expand Down