Table of Contents

CheckBox

com.ergotech.vib.graphics.CheckBox

Image Examples

CheckBox in the graphics palette CheckBox graphic example
CheckBox in the graphics palette. CheckBox graphic example.

Overview

The CheckBox graphic is a More Layout input control used for selected and unselected behavior.

CheckBox can be used as a two-state control. It can switch between an off state and an on state, and it sends a value when the state changes.

CheckBox can display different labels for the off and on states.

Common Uses

Input Behavior

CheckBox can be updated from an input connection.

The updateDisplayedValue port updates the displayed CheckBox state from logic, a data source, or another component.

Output Behavior

CheckBox sends its current value through PrimaryOutPort.

In a typical selected/unselected setup, the unchecked state sends the configured Low Value, and the checked state sends the configured High Value.

CheckBox-Specific Behavior

CheckBox is designed for two-state selected and unselected behavior.

CheckBox-specific settings include:

Logic Ports

In the Logic Editor, CheckBox includes these default ports:

The PrimaryOutPort sends the CheckBox output value.

The updateDisplayedValue port updates the displayed CheckBox state from another source.

Notes

Use CheckBox when users need to select or clear a two-state option.

Use RoundCheckBox for the round checkbox variation.

Use Button for button-style on/off behavior.

Use BootstrapButton for Bootstrap-style button behavior.

For general graphic behavior, see Active Graphic.