smDropdown: smDropdown

Description Usage Arguments Details Examples

Description

A wrapper for attaching a dropdown menu to a shiny element.

Usage

1
smDropdown(parent, ..., el.list)

Arguments

parent

A shiny object to attach the dropdown to. Usually a button or link.

el.list

An optional list of elements to add to the dropdown

...

Elements to add to the dropdown menu.

Details

Supplied with a parent and Elements, smDropdown will attach a dropdown menu to parent that contains the provided Elements.

Examples

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")
)

ebailey78/shinyMenus documentation built on May 15, 2019, 7:30 p.m.