On/Off

It allows user to set only "0" or "1" input where "0" represent Off and "1" is On.

Usage

In most of the cases, we simply use "On/Off" component to read user numeric input within a range of "0" or "1" and identify the data by storage name. It allows you to get back the user input data by typing ${ NAME YOU DEFINED IN STORAGE NAME } in anywhere of the app.


Action [ Created | Switched On | Switched Off ]

Simply click the action you want to define and drag components inside.

Created:

Mostly used to define further UI design within the Range.

Switched On:

It's used to define action when user clicked the on side of "On/Off" component.

Example

Switch on the motor connected by Bluetooth when user set the On/Off Component to on. The logic is showed below. ( ) is used to define the action we selected and [ ] is used to define the properties we set:

On/Off -> (Switched On) -> Connect Server
Switched Off:

It's used to define action when user clicked the off side of "On/Off" component.

Example

Switch off the motor connected by Bluetooth when user set the On/Off Component to off. The logic is showed below. ( ) is used to define the action we selected and [ ] is used to define the properties we set:

On/Off -> (Switched Off) -> Connect Server

Properties

Simply click a gear on the right hand corner of related "Range" component to edit the properties.

Status [ On | Off ] - Preconfigured the value to 0 or 1.

  • Yes - The value set to 1.
  • No - The value set to 0.

Grep Color - TBC

Tint Color when On - It's used to set the On/Off Component color when value is set to on.

Tint Color when Off - It's used to set the On/Off Component color when value is set to off.

results matching ""

    No results matching ""