toc_row: Create a Shiny 'fluidRow()' with three columns: table of...

View source: R/toc_row.R

toc_rowR Documentation

Create a Shiny fluidRow() with three columns: table of contents, content, and right space

Description

Use in place of shiny::fluidRow(). Each page should have a maximum of one toc_row() - to create rows within this overall row, use shiny::fluidRow().

Usage

toc_row(
  ...,
  page_id,
  page_title = "",
  toc_space = 2,
  right_space = toc_space,
  max_width_px = 1140
)

Arguments

...

Elements to include within the main column.

page_id

An ID that uniquely identifies the page on which the TOC row will be placed. Can be any string without spaces, such as "indicators" or "regional-unemployment.

page_title

Title of the page. Can include spaces. Used for the title of the table of contents.

toc_space

Numeric. Minimum is 1, maximum is 10. Proportion of the width of the page that should be given to the table of contents, where the total width of the page = 12. Default is 3.

right_space

Numeric. Minimum is 1, maximum is 10. Proportion of the width of the page that should be given to the whitespace at the right hand side, where the total width of the page = 12. By default, same as toc_space.

max_width_px

Maximum width, in pixels, of the main content column.

Details

Note that widths of columns are currently hard-coded at page level; changes to row widths in toc_row will not affect objects created with djpr_plot_server().


djpr-data/djprshiny documentation built on May 14, 2023, 1:15 p.m.