Constructs a widget for specifying settings for importing data. This widget is designed to be used within a Shiny web application.
Arguments
character
containing the identifier for the button HTML element to accompany this widget.- x
character
vector containing the field/layer names for the dataset. ANULL
value may also be specified to initialize the widget without any field/layer names.- width
character
width of the displayed widget. Defaults toNULL
such that the widget is automatically sized.- height
character
width of the displayed widget. Defaults toNULL
such that the widget is automatically sized.- elementId
character
HTML identifier for the widget. Defaults toNULL
.
Server value
A list
object containing a list
element for each field/layer name
containing:
- name
character
name of the field/layer.- import
logical
value indicating if the field/layer should be used.- type
character
value. Available options are"Theme"
,"Weight"
, or"Include"
.- nonce
numeric
random value used to ensure that updates trigger when the button is clicked.
Examples
# \dontrun{
# run Shiny app to demo the sidebar pane
if (interactive()) {
runExample("importSettings")
}
# }