choose_data.Rd
A common task in configuration dialogs is telling the extension where it should pull data from: from which worksheet, whether to use summary or underlying data is desired, and for underlying data with multiple logical tables, which logical table. This Shiny module provides a drop-in component for prompting the user for these inputs in a consistent and usable way.
choose_data_ui(id, label = NULL)
choose_data(
id,
options = choose_data_options(),
iv = NULL,
session = shiny::getDefaultReactiveDomain()
)
id | An identifier. Like a Shiny input or output id, corresponding UI
( |
---|---|
label | Display label for the control, or |
options | |
iv | A shinyvalidate::InputValidator object; almost certainly you'll
want to use the one that shinytableau passes to you via the |
session | The Shiny |
For an example, look at the config_ui
and config_server
defined
in the
datasummary
example app,
as well as the "Accessing Data" section of the
Getting Started guide.