Description Usage Arguments Value Examples
View source: R/remove_circletype.R
Remove circletype effect
1 | remove_circletype(id, session = NULL)
|
id |
Id of the text element that has a circletype effect. |
session |
Session of the Shiny app |
Removes circletype effect
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | if (interactive()) {
library(shiny)
library(circletyper)
ui <- fluidPage(
use_circletype(), # load dependencies
circletype(strong("this is a bold text", id = "teststrong")),
br(),
# You can also remove the circletype effect
actionButton("remove", "remove circletype effect for bold text")
)
server <- function(input, output, session) {
observeEvent(input$remove, {
remove_circletype("teststrong", session = session)
})
}
shinyApp(ui, server)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.