Display a table in a window
Usage
show_data(
data,
title = NULL,
options = NULL,
show_classes = TRUE,
type = c("popup", "modal", "winbox"),
width = "65%",
...
)
Arguments
- data
a data object (either a
matrix
or adata.frame
).- title
Title to be displayed in window.
- options
Arguments passed to
toastui::datagrid()
.- show_classes
Show variables classes under variables names in table header.
- type
Display table in a pop-up with
shinyWidgets::show_alert()
, in modal window withshiny::showModal()
or in a WinBox window withshinyWidgets::WinBox()
.- width
Width of the window, only used if
type = "popup"
ortype = "winbox"
.- ...
Additional options, such as
wbOptions = wbOptions()
orwbControls = wbControls()
.
Note
If you use type = "winbox"
, you'll need to use shinyWidgets::html_dependency_winbox()
somewhere in your UI.