Constructs a widget for managing the settings for generating solutions.
Arguments
- x
SolutionSettings object.
- 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
The widget sends a list
with the following values to the server:
- id
character
identifier for the theme or weight.- setting
character
name of the updated setting. Available options include:"status"
,"factor"
, or"goal"
.- value
new
numeric
orlogical
values.- type
character
indicating if the updated setting corresponds to atheme
orweight
.
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")
}
# }