EVOLUTION-MANAGER
Edit File: hidden.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Initialize a Shiny tag as hidden</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for hidden {shinyjs}"><tr><td>hidden {shinyjs}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Initialize a Shiny tag as hidden</h2> <h3>Description</h3> <p>Create a Shiny tag that is invisible when the Shiny app starts. The tag can be made visible later with <code><a href="visibilityFuncs.html">toggle()</a></code> or <code><a href="visibilityFuncs.html">show()</a></code>. </p> <h3>Usage</h3> <pre> hidden(...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>...</code></td> <td> <p>Shiny tag (or tagList or list of of tags) to make invisible</p> </td></tr> </table> <h3>Value</h3> <p>The tag (or tags) that was given as an argument in a hidden state. </p> <h3>Note</h3> <p><code>shinyjs</code> must be initialized with a call to <code>useShinyjs()</code> in the app's ui. </p> <h3>See Also</h3> <p><code><a href="useShinyjs.html">useShinyjs()</a></code>, <code><a href="visibilityFuncs.html">toggle()</a></code>, <code><a href="visibilityFuncs.html">show()</a></code>, <code><a href="visibilityFuncs.html">hide()</a></code> </p> <h3>Examples</h3> <pre> if (interactive()) { library(shiny) shinyApp( ui = fluidPage( useShinyjs(), # Set up shinyjs actionButton("btn", "Click me"), hidden( p(id = "element", "I was born invisible") ) ), server = function(input, output) { observeEvent(input$btn, { show("element") }) } ) } library(shiny) hidden(span(id = "a"), div(id = "b")) hidden(tagList(span(id = "a"), div(id = "b"))) hidden(list(span(id = "a"), div(id = "b"))) </pre> <hr /><div style="text-align: center;">[Package <em>shinyjs</em> version 2.1.0 <a href="00Index.html">Index</a>]</div> </body></html>