add_ui_body: Add UI Elements to the Body area

View source: R/ui_helpers.R

add_ui_bodyR Documentation

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

require(shiny)

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

add_ui_body(list(body1, body2))


periscope documentation built on Nov. 7, 2023, 1:06 a.m.