module:InputBox(appInstance, isOnopt)

InputBox has only output connectors and is used to set the input states for the logic network.

new module:InputBox(appInstance, isOnopt)

Parameters:
Name Type Attributes Default Description
appInstance App

instance of App

isOn Boolean <optional>
false

the initial state of the inputbox (true is on, false is off)

Extends

  • Box

Members

exportData

get data of this input box as a JSON-ready object

on

set the state of the inputbox to the corresponding value

on

get the state of the inputbox (true if on, false if off)

Methods

onClick()

toggle the state of the inputbox

refreshState()

start a new simulation from the output connector