Skip to content

Commit

Permalink
Show example of icon
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Sep 16, 2019
1 parent fc5ccd1 commit 35a47c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions basic-ui.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,12 @@ ui_screenshot(ui, "basic-ui/upload")

### Action buttons

Perform an action with `actionButton()` or `actionLink()`. These are most naturally paired with `observeEvent()` or `eventReactive()` in the server function. I haven't discussed these functions yet, but we'll come back to them in next chapter.
Perform an action with `actionButton()` or `actionLink()`. These are most naturally paired with `observeEvent()` or `eventReactive()` in the server function; I haven't discussed these functions yet, but we'll come back to them in next chapter.

```{r}
ui <- fluidPage(
actionButton("action1", "Click me!"),
div(actionLink("action2", "Don't click me!"))
actionButton("click", "Click me!"),
actionButton("drink", "Drink me!", icon = icon("cocktail")),
)
```
```{r, echo = FALSE, out.width = NULL}
Expand Down
Binary file modified screenshots/basic-ui/action.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 35a47c0

Please sign in to comment.