dropdownButtonMod: Modified shinyWidgets dropdownButton

View source: R/dropdownButton.R

dropdownButtonModR Documentation

Description

Button is wrapped in input-group-btn class to allow inline with forms. Also includes title parameter.

Usage

dropdownButtonMod(
  ...,
  circle = TRUE,
  status = "default",
  size = "default",
  icon = NULL,
  label = NULL,
  tooltip = FALSE,
  right = FALSE,
  up = FALSE,
  circle_class = "",
  width = NULL,
  margin = "10px",
  inline = FALSE,
  inputId = NULL,
  title = NULL,
  style = ""
)

Arguments

...

List of tag to be displayed into the dropdown menu.

circle

Logical. Use a circle button

status

Add a class to the buttons, you can use Bootstrap status like 'info', 'primary', 'danger', 'warning' or 'success'. Or use an arbitrary strings to add a custom class, e.g. : with status = 'myClass', buttons will have class btn-myClass.

size

Size of the button : default, lg, sm, xs.

icon

An icon to appear on the button.

label

Label to appear on the button. If circle = TRUE and tooltip = TRUE, label is used in tooltip.

tooltip

Put a tooltip on the button, you can customize tooltip with tooltipOptions.

right

Logical. The dropdown menu starts on the right.

up

Logical. Display the dropdown menu above.

width

Width of the dropdown menu content.

margin

Value of the dropdown margin-right and margin-left menu content.

inline

use an inline (span()) or block container (div()) for the output.

inputId

Optional, id for the button, the button act like an actionButton, and you can use the id to toggle the dropdown menu server-side with toggleDropdownButton.

title

title attribute for button

Value

shiny.tag


hms-dbmi/drugseqr documentation built on June 24, 2024, 7:03 a.m.