replace_bootstrap_cols: Replace bootstrap grid columns

View source: R/utils_helpers.R

replace_bootstrap_colsR Documentation

Replace bootstrap grid columns

Description

By default shiny uses col-sm-* classes. We want to be able to replace these with a different column type, e.g. col-xl-*. This function recursively iterates through shiny UI elements and replaces the classes of shiny.tag objects.

Usage

replace_bootstrap_cols(
  x,
  from = c(".", "xs", "sm", "md", "lg", "xl"),
  to = c("xs", "sm", "md", "lg", "xl")
)

Arguments

x

an object we want to iterate through, initialy should be a shiny.tag.list

from

the column type we want to replace, defaults to "." (all)

to

the column type we want to replace


The-Strategy-Unit/723_mh_covid_surge_modelling documentation built on April 13, 2022, 8:52 a.m.