Constructs a widget for managing the settings for generating solutions.

solutionSettings(x, width = NULL, height = NULL, elementId = NULL)

Arguments

x

Project object.

width

character width of the displayed widget. Defaults to NULL such that the widget is automatically sized.

height

character width of the displayed widget. Defaults to NULL such that the widget is automatically sized.

elementId

character HTML identifier for the widget. Defaults to NULL.

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: "factor" or "goal".

value

new numeric values.

type

character indicating if the updated setting corresponds to a theme or weight.

The widget contains two buttons. The server value for these buttons are 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.

Examples

# \dontrun{
# run Shiny app to demo the sidebar pane
if (interactive()) {
  runExample("solutionSettings")
}
# }