Learn R Programming

periscope (version 1.0.4)

add_ui_body: Add UI Elements to the Body area

Description

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

Usage

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

Run this code
require(shiny)

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

add_ui_body(list(body1, body2))

Run the code above in your browser using DataLab