remove_circletype: Remove circletype effect

View source: R/remove_circletype.R

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

circletyper documentation built on Sept. 21, 2022, 9:13 a.m.