Description Usage Arguments See Also Examples
Use fieldset
to associate and label inputs. This is good for screen readers
and other assistive technologies.
1 |
... |
Any number of inputs to group or named arguments passed as HTML attributes to the parent element. |
legend |
A character string specifying the fieldset's legend. |
Other layout functions:
column()
,
flex()
,
navbar()
,
responsive
,
webpage()
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 27 | ### Grouping related inputs
fieldset(
legend = "Pizza order",
formGroup(
"What toppings would you like?",
div(
checkbarInput(
id = "toppings",
choices = c(
"Cheese",
"Black olives",
"Mushrooms"
)
)
)
),
formGroup(
"Is this for delivery?",
checkboxInput(
id = "deliver",
choice = "Deliver"
)
),
buttonInput("order", "Place order") %>%
background("blue")
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.