FlipToggle

From NSB App Studio
Revision as of 23:50, 22 July 2012 by Brendon (talk | contribs) (Created page with "file:FlipToggle '''Description''' The FlipToggle control is a slider that changes between Off and On. To add a FlipToggle to your app, choose the FlipToggle icon in the...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

File:FlipToggle

Description

The FlipToggle control is a slider that changes between Off and On.

To add a FlipToggle to your app, choose the FlipToggle icon in the Toolbar, then position it on the Design Screen. Use the Property Editor to set the properties you need, then add functions to your code to respond to the events that come from the FlipToggle: usually, just onclick.

Properties

Standard properties are supported (“Properties”)

Value() The value of the control.
setValue() Set the value to one of the titles.
titleLeft The name of the left title. Design only.
titleRight The name of the left title. Design only.

Events

Standard events are supported.

Example

Print FlipToggle1.value

Output

Off