Learn R Programming

shinybones (version 0.2.4)

preview_component: Preview a UI component in a ShinyDashboard

Description

Preview a UI component in a ShinyDashboard

Usage

preview_component(component, title = "Preview", use_box = TRUE, ...)

Arguments

component

A UI component to display in a shinydashboard.

title

A string indicating the title to display.

use_box

A boolean indicating if the component should be wrapped inside a box.

...

Additional arguments to pass on to preview_module

See Also

Other preview: preview_datatable, preview_module

Examples

Run this code
# NOT RUN {
 ui <- DT::datatable(mtcars, width = '100%', extension = 'Responsive')
 preview_component(ui)
# }

Run the code above in your browser using DataLab