Class: ButtonPanelPresenter

ButtonPanelPresenter(root, onBuild)

Presenter controlling the main simulation buttons. Presenter which controls the functionality of the script and run button panel in the UI which allow for basic tool functionality (switching authoring modes and running the simulation).

Constructor

new ButtonPanelPresenter(root, onBuild)

Creates a new ButtonPanelPresenter instance.
Parameters:
Name Type Description
root HTMLElement The root element containing the button panel.
onBuild function Callback function triggered when build/run is initiated.
Source:

Methods

disable()

Disables the button panel and shows loading state.
Source:

enable()

Enables the button panel and shows available options.
Source:

hideScriptButtons()

Hides script-related buttons.
Source:

showScriptButtons()

Shows script-related buttons.
Source: