Vamonos.Widget.Controls

Back

The Controls widget controls the Visualizer - switching modes and frames.

Constructor Arguments

container :: String jQuery Selectorrequired

The id or a jQuery selector of the div in which this widget should draw itself.

autoPlay :: Boolean – default value: false

whether the visualization should skip edit mode

buttons :: Boolean – default value: true

whether to show the buttons

frameNumber :: Boolean – default value: true

whether to show the frame number

fullscreen :: Boolean – default value: false

whether the visualization is in fullscreen mode

inputVars :: Object – optional

a mapping from var names to default values

keyboardShortcuts :: Boolean – default value: true

whether to handle keyboard shortcuts

runStopButton :: Boolean – default value: true

whether to show the run and stop button

showWhileSliding :: Boolean – default value: true

whether to update visualization when sliding

slider :: Boolean – default value: true

whether to show the slider