Constructs a widget for managing the settings for generating solutions.
Arguments
- x
SolutionSettings object.
- width
characterwidth of the displayed widget. Defaults toNULLsuch that the widget is automatically sized.- height
characterwidth of the displayed widget. Defaults toNULLsuch that the widget is automatically sized.- elementId
characterHTML identifier for the widget. Defaults toNULL.
Server value
The widget sends a list with the following values to the server:
- id
characteridentifier for the theme or weight.- setting
charactername of the updated setting. Available options include:"status","factor", or"goal".- value
new
numericorlogicalvalues.- type
characterindicating if the updated setting corresponds to athemeorweight.
The widget also contains a text box. The server value for this
text box is a character string. It can be queried using
id_name where id is the argument to elementId.
The widget also contains two buttons. The server values for these
buttons is an integer indicating the number of times they
has been clicked. They can be queried using id_start_button
and id_stop_button where id is the argument to elementId.
The widget also contains a color picker. The server value for this
button is an character indicating the current color. It can be queried
using id_color where id is the argument to elementId.
Examples
# \dontrun{
# run Shiny app to demo the sidebar pane
if (interactive()) {
runExample("solutionSettings")
}
# }