Description Usage Arguments Details Examples
A wrapper for attaching a dropdown menu to a shiny element.
1 | smDropdown(parent, ..., el.list)
|
parent |
A shiny object to attach the dropdown to. Usually a button or link. |
el.list |
An optional |
... |
Elements to add to the dropdown menu. |
Supplied with a parent
and Elements, smDropdown
will attach a dropdown menu to parent
that contains the provided
Elements.
1 2 3 4 5 6 7 | smDropdown(parent = actionButton("ddEx", "Dropdown"),
smAction("act1", "An Action"),
smAction("act2", "Another Action"),
smDivider(),
smCheckbox("cbEx", "cb1", "A Checkbox"),
smCheckbox("cbEx", "cb2", "Another Checkbox")
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.