updateBox2: Update a box2 tag.

Description Usage Arguments

View source: R/boxes.R

Description

Update a box2 tag.

Usage

1
2
3
4
5
6
updateBox2(
  id,
  action = c("toggle", "update"),
  options = NULL,
  session = getDefaultReactiveDomain()
)

Arguments

id

If passed, the item will behave like an action button.

action

Action to trigger: either collapse, remove, restore or update.

options

If action is update, a list of new options to configure the box, such as list(title = "new title", status = NULL, solidHeader = FALSE, background = "red", width = 6, height = "200px", collapsible = FALSE, closable = FALSE). If the box had a background/status (any item that may be NULL), you must explicitly pass background = NULL, if you want to remove the background value.

session

Shiny session object.


DivadNojnarg/outstanding-shiny-ui-code documentation built on Nov. 2, 2021, 12:03 p.m.