remove_circletype: Remove circletype effect

Description Usage Arguments Value Examples

View source: R/remove_circletype.R

Description

Remove circletype effect

Usage

1
remove_circletype(id, session = NULL)

Arguments

id

Id of the text element that has a circletype effect.

session

Session of the Shiny app

Value

Removes circletype effect

Examples

 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)
}

circletyper documentation built on July 17, 2021, 5:06 p.m.