Skip to content

Commit 5ded6d6

Browse files
authored
Update 02_inputs.md
Fix typos
1 parent 4d1d1b4 commit 5ded6d6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

RShiny/lessons/02_inputs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ ui <- fluidPage(
153153
# Dropdown select menu of options
154154
selectInput(inputId = "input_select",
155155
label = "My favorite game",
156-
choices = c("Pick a game" = "", "Catan", "Carcassonne", "Caverna", "Twillight Imperium")),
156+
choices = c("Pick a game" = "", "Catan", "Carcassonne", "Caverna", "Twilight Imperium")),
157157
# The output text
158158
textOutput(outputId = "output_text")
159159
)
@@ -178,7 +178,7 @@ Some additional arguments for `selectInput()` are provided below:
178178
| Argument | Description | Example |
179179
|----------|-------------|-----------|
180180
| multiple | Allows you to select multiple options from the selection dropdown menu | `multiple = TRUE` |
181-
| selected | Allows you to define the default selection, otherwise the default selection will be the first item in the list, unless the `multiple` argument is `TRUE`, then it will default to no selection | `selected = "Twillight Imperium"` |
181+
| selected | Allows you to define the default selection, otherwise the default selection will be the first item in the list, unless the `multiple` argument is `TRUE`, then it will default to no selection | `selected = "Twilight Imperium"` |
182182

183183
> You can alternatively use `selectizeInput()` instead of `selectInput()` to have more control over the dropdown. While this is outside of the scope of this lesson, the documentation for this can be found [here](https://selectize.dev/docs/usage). `selectizeInput()` can be really nice because it allows you to have a search bar and autocomplete for your list.
184184

0 commit comments

Comments
 (0)