filter_ui: Conditional filter module

View source: R/conditional_filter-module.R

filter_uiR Documentation

Conditional filter module

Description

The module is constructed so that the filter controls are updated based on the data range.

Usage

filter_ui(id)

filter_server(
  dat,
  id,
  labels = character(1),
  external = reactiveValues(),
  logi = character(1),
  ignore = character(1),
  shinyjs = FALSE,
  remove_na = FALSE
)

Arguments

id

Namespace of the module.

dat

The data supplied as dataframe or tibble.

labels

Labels for the controllers (defaults to the variable names).

external

reactiveValues assigning external filter variables to the module.

logi

Label for the controller of logical variables (defaults to "Various").

ignore

Character string/vector for variables to be ignored for filtering of the dataset.

shinyjs

A logical indicating whether shinyjs ToggleState() is included to disable controllers.

remove_na

Logical indicating whether NAs should be removed during filtering (defaults to FALSE).

Value

Shiny module.


MartinSchobben/shinymods documentation built on June 7, 2022, 4:38 p.m.