example-builder.R

library(shiny.forms)
library(shiny)
#example

test <- ShinyFormBuilder$new("test_id", cache = here::here("cache"))
shinyApp(ui = fluidPage(
  test$ui(),
  actionButton(".browse", "Browse")), function(input, output, session){

    p <- test$reactive()

    test$call()

    observeEvent(input$.browse, {
      browser()

      return(NULL)
    })
  })
jtlandis/shiny.forms documentation built on Dec. 21, 2021, 4:13 a.m.