| details | R Documentation |
This function create a detail component that you can click for further details.
details(inputId, label, help_text)
inputId |
The id assigned to the component's root element. For Shiny
input components this is also the name used to access the value via
|
label |
Main label text |
help_text |
Additional help information in the component. Accepts a
plain character string, or |
a details box HTML shiny tag object
Other Govstyle feedback types:
confirmation_panel(),
gov_summary(),
gov_tag(),
inset_text(),
label_hint(),
noti_banner(),
value_box(),
warning_text()
ui <- shinyGovstyle::gov_page(
shinyGovstyle::header(
org_name = "Example",
service_name = "User Examples",
logo = "shinyGovstyle/images/moj_logo.png"
),
shinyGovstyle::gov_main_layout(
shinyGovstyle::details(
inputId = "help_div",
label = "Help with form",
help_text = "To complete the form you need to fill it in..."
)
),
shinyGovstyle::footer(full = TRUE)
)
server <- function(input, output, session) {}
if (interactive()) shinyApp(ui = ui, server = server)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.