Creates a new option controller
The parent GUI instance
Object containing the property to control
Name of the property to control
Object with key/value pairs or array of values for the options
Whether the value has changed since the last finishChange event
Whether the controller is disabled
Whether the controller is hidden
ID of the animation frame when listening for changes
Whether the controller is actively listening for external changes
Previous value when listening for changes
Name of the controller (typically matches the property name)
Callback for when the value changes
Callback for when value changes are completed
Display element showing the current selection
DOM element that will be disabled when controller is disabled
DOM element for displaying the property name
The select element for the dropdown
DOM element containing the control widget
Main DOM element for this controller
Initial value of the controlled property
Object containing the property to control
Parent GUI instance
Property name being controlled
Static
nextUsed for generating unique IDs
Removes the controller from its parent and the DOM
Disables or enables the controller
Whether to disable the controller
This controller instance (for chaining)
Enables or disables the controller
Whether to enable the controller
This controller instance (for chaining)
Gets the current value of the controlled property
The current value
Hides the controller (alias for show(false))
This controller instance (for chaining)
Enables or disables listening for external changes to the property
Whether to listen for changes
This controller instance (for chaining)
Sets the value and triggers the onFinishChange callback
The value to set
This controller instance (for chaining)
Sets the display name of the controller
The name to display
This controller instance (for chaining)
Registers a callback for value changes
Function called when the value changes
This controller instance (for chaining)
Registers a callback for when value changes are completed
Function called when value changes are completed
This controller instance (for chaining)
Sets or updates the available options
Object with key/value pairs or array of values for the options
This controller instance (for chaining)
Returns the current value (used for saving state)
The current value
Sets the number of decimal places (implemented by subclasses)
Number of decimal places
This controller instance (for chaining)
Sets the maximum value (implemented by subclasses)
Maximum value
This controller instance (for chaining)
Sets the minimum value (implemented by subclasses)
Minimum value
This controller instance (for chaining)
Sets the step size (implemented by subclasses)
Step size
This controller instance (for chaining)
Sets the value of the controlled property Only updates if the value has changed
The new value
This controller instance (for chaining)
Shows or hides the controller
Whether to show the controller
This controller instance (for chaining)
Updates the dropdown to reflect the current value
This controller instance (for chaining)
Controller for values with a select dropdown interface Provides a dropdown menu for selecting from predefined options
Display Name
OptionControl