remove_circletype {circletyper}R Documentation

Remove circletype effect

Description

Remove circletype effect

Usage

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

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

[Package circletyper version 1.0.2 Index]