hidden-inputs: Hidden interface elements

hidden-inputsR Documentation

Hidden interface elements

Description

Returns an interface element with or without the CSS class shinyjs-hide, depending on whether the element is hidden based on .hideInterface. This allows panels to hide interface elements that are provided by parent classes but are not needed in the subclass.

Usage

.selectInputHidden(x, field, ...)

Arguments

x

An instance of a Panel class.

field

String specifying the name of the suffix of the ID of the interface element.

...

Further arguments to pass to the Shiny function responsible for producing the interface element.

Details

.selectInputHidden(x, field, ...) produces a Shiny selectInput element that will be hidden if .hideInterface(x) is TRUE.

Value

The output of FUN(id, ..) is returned where id is defined by concatenating .getEncodedName(x) and field (separated by an underscore).

Author(s)

Kevin Rue-Albrecht

Examples

.selectInputHidden(ComplexHeatmapPlot(), "SelectionHistory",
  choices = c(1, 2, 3), label = "Saved selection (hidden)")
  
.selectInputHidden(ReducedDimensionPlot(), "Type",
  choices = c("UMAP", "PCA"), label = "Reduced dimension type (hidden)")

csoneson/SEE documentation built on Dec. 13, 2024, 6:43 p.m.