toggle_attribute | R Documentation |
Attributes are set in HTML tags by setting them to NA. This is not very human-readable. It is more understandable to set them to TRUE to set the attribute and to FALSE not to set it.
toggle_attribute(x)
x |
logical value |
library("shiny")
tags$input(name="Foo", required=toggle_attribute(FALSE))
tags$input(name="Foo", required=NULL)
tags$input(name="Foo", required=toggle_attribute(TRUE))
tags$input(name="Foo", required=NA)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.