Skip to contents

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 a data.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 with shiny::showModal() or in a WinBox window with shinyWidgets::WinBox().

width

Width of the window, only used if type = "popup" or type = "winbox".

...

Additional options, such as wbOptions = wbOptions() or wbControls = wbControls().

Value

No value.

Note

If you use type = "winbox", you'll need to use shinyWidgets::html_dependency_winbox() somewhere in your UI.