toc_row | R Documentation |
fluidRow()
with three columns: table of contents,
content, and right spaceUse 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()
.
toc_row(
...,
page_id,
page_title = "",
toc_space = 2,
right_space = toc_space,
max_width_px = 1140
)
... |
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 |
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 |
max_width_px |
Maximum width, in pixels, of the main content column. |
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()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.