shinyCSSStyle: Shiny UI function with 'style = ' arguments

Description Usage Arguments Details Value

Description

shinyCSSStyle extend several common UI functions by adding a argument for css styling of a single element.

Usage

1
2
3
4
5
6
checkboxInputStyle(inputId, label, value = FALSE, width = NULL,
  cssStyle = NULL)

columnStyle(width, ..., offset = 0, cssStyle = NULL)

sidebarCSS()

Arguments

inputId

The module's unique identifier (to be passed to NS()).

label

Display label for the control, or NULL for no label.

value

Initial value (TRUE or FALSE).

width

The width of the input, e.g. '400px', or '100%'.

cssStyle

A string of style arguments using CSS syntax (e.g., 'padding:0px; margin-top: 5px;).

...

Elements to include within the UI structure column (e.g. column).

offset

The number of columns to offset this column from the end of the previous column.

Details

The sidebarCSS function added a lengthy set of CSS styling changes to the shinydashboard sidebar element.

Value

The UI element (as HTML) with any specified CSS styling.


tiernanmartin/shmodules documentation built on May 31, 2019, 1:19 p.m.