Description Usage Arguments Examples
The function is to be used to disable an element when created.
1 |
x |
html element |
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 | library(shinytools)
if (interactive()) {
options(device.ask.default = FALSE)
ui <- fluidPage(
titlePanel("Hello dghiesse!"),
load_jstools(),
sidebarLayout(
sidebarPanel(
default_disabled(actionButton("dosomething", "don't click"))
),
mainPanel(
plotOutput("distPlot")
)
)
)
server <- function(input, output) {
output$distPlot <- renderPlot({
hist(rnorm(50))
})
}
print(shinyApp(ui, server))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.