mwGroup: Group inputs in a collapsible box

Description Usage Arguments Value See Also Examples

View source: R/inputs.R

Description

This function generates a collapsible box containing inputs. It can be useful when there are a lot of inputs and one wants to group them.

Usage

1
mwGroup(..., label = NULL, .display = TRUE)

Arguments

...

inputs that will be grouped in the box

label

label of the group inputs

.display

expression that evaluates to TRUE or FALSE, indicating when the group should be shown/hidden.

Value

Input of type "group".

See Also

Other controls: mwCheckboxGroup(), mwCheckbox(), mwDateRange(), mwDate(), mwNumeric(), mwPassword(), mwRadio(), mwSelectize(), mwSelect(), mwSharedValue(), mwSlider(), mwText()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
if(require(dygraphs)) {
  mydata <- data.frame(x = 1:100, y = rnorm(100))
  manipulateWidget(
    dygraph(mydata[range[1]:range[2], ],
            main = title, xlab = xlab, ylab = ylab),
    range = mwSlider(1, 100, c(1, 100)),
    "Graphical parameters" = mwGroup(
      title = mwText("Fictive time series"),
      xlab = mwText("X axis label"),
      ylab = mwText("Y axis label")
    )
  )
}

manipulateWidget documentation built on Oct. 5, 2021, 9:10 a.m.