mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2025-12-16 09:32:10 +01:00
1.3 KiB
1.3 KiB
Display a table in a window
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
matrixor 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().
Value
No value.
Note
If you use type = "winbox", you'll need to use
shinyWidgets::html_dependency_winbox()
somewhere in your UI.