NarraLeaf

Switch

The Switch widget's checked state, and the enabled and visible flags every widget has.

Nine nodes for a nl.switch element: the checked state in every form an interface needs it, plus the enabled and visible pair.

Conventions

  • Widget blueprints only, and only on a Switch. These are scoped to nl.switch, so they are offered on that widget's own blueprint and nowhere else. To reach a Switch from another graph, use the Element versions.
  • The three readers are pure. A Blueprint Value is owned by widgetValue and does not offer them; read a Switch from one with the Element versions and an Element literal. The six writers are latent.
  • The visible and enabled nodes are two families. While the palette is browsed, Get Visible and Get Enabled are one row, Get Visible or Enabled, and Set Visible and Set Enabled are Set Visible or Enabled. A search finds each node by its own name, and the ▾ beside a placed card's title switches between the two. See Node families.

Get Checked

blueprint.switch.getChecked · Pure

PinDirectionTypeNotes
checkedout · databoolean

Set Checked

blueprint.switch.setChecked · Latent

PinDirectionTypeNotes
inin · exec—
nextout · exec—
checkedin · databooleanLiteral.

Turn On

blueprint.switch.turnOn · Latent

Set Checked with true, as its own card so the common case reads as one word.

PinDirectionTypeNotes
inin · exec—
nextout · exec—

Turn Off

blueprint.switch.turnOff · Latent

PinDirectionTypeNotes
inin · exec—
nextout · exec—

Toggle

blueprint.switch.toggle · Latent

PinDirectionTypeNotes
inin · exec—
nextout · exec—
checkedout · databooleanThe state it ended up in.

Get Enabled

blueprint.switch.getEnabled · Pure

PinDirectionTypeNotes
enabledout · databoolean

Set Enabled

blueprint.switch.setEnabled · Latent

PinDirectionTypeNotes
inin · exec—
nextout · exec—
enabledin · databoolean

Get Visible

blueprint.switch.getVisible · Pure

PinDirectionTypeNotes
visibleout · databoolean

Set Visible

blueprint.switch.setVisible · Latent

PinDirectionTypeNotes
inin · exec—
nextout · exec—
visiblein · databoolean

On this page