Class: BooleanToggle

X3D: 3.3
Component: EventUtilities
Status:
experimental

.nodeTypes. BooleanToggle

stores and toggles boolean value

HTML Encoding and Default Values

<BooleanToggle metadata='X3DMetadataObject' set_boolean='None' toggle='false' ></BooleanToggle>

Inheritance


Constructor

BooleanToggle(ctx)

Constructor for BooleanToggle

Parameters:
Name Type Argument Default Description
ctx Object <optional>
null context object, containing initial settings like namespace

Fields

These are the X3D / X3DOM fields of this node. Values should usually be received / set as strings via DOM functions (i.e., using setAttribute("myFieldName", "myFieldValue") and getAttribute("myFieldName")).
Name Type Default Value Range Inheritance Standard Description
metadata SFNode X3DMetadataObject X3DNode Field to add metadata information
set_boolean SFBool None input bool in event to cause toggling.
toggle SFBool false stored value to toggle and output; resetable