add_ui_body: Add UI Elements to the Body area

Description Usage Arguments Shiny Usage See Also Examples

View source: R/ui_helpers.R

Description

This function registers UI elements to the body of the application (the right side). Items are added in the order given.

Usage

1
add_ui_body(elementlist = NULL, append = FALSE)

Arguments

elementlist

list of UI elements to add to the body

append

whether to append the elementlist to the currently registered elements or replace the currently registered elements completely

Shiny Usage

Call this function after creating elements in program/ui_body.R to register them to the application framework and show them on the body area of the dashboard application

See Also

add_ui_sidebar_basic

add_ui_sidebar_advanced

Examples

1
2
3
4
5
6
require(shiny)

body1 <- htmlOutput("example1")
body2 <- actionButton("exButton", label = "Example")

add_ui_body(list(body1, body2))

periscope documentation built on July 8, 2020, 7:18 p.m.