Contents
- Usage
- Using the Library
- Using the Themes
- Using the Demo App
- Components
- Accordion
- AnimatedImage
- AutoComplete
- AutoFitText
- BarCode
- BitmapAdjustments
- ButtonBar
- Calculator
- Calendar
- CAPTCHA
- CarouselLayout
- CarouselList
- Clocks
- Colorizer
- ColorPicker
- ColorSpacePicker
- CompassContainer
- CoverflowLayout
- CoverflowList
- CursorManager
- DatePicker
- DockingCompassContainer
- Donut Chart
- ExpandingContainer
- FieldSet
- Filters
- FlexContextMenu
- FloatPaneControlBar
- Funnel Chart
- GraphicsEditor
- Heatmap
- HtmlDragDrop
- HtmlFrame
- HtmlGeolocation
- iCalendarParser
- iCalendarRecurrence
- IconButton
- Linear Gauges
- Magnifier
- Menu and MenuBar
- MiniViewport
- PackedLayout
- PackedList
- Pane
- PopUpButton
- ProgressDisplay
- Radar
- Radial Gauge
- Rating
- ReflectionContainer
- RichTextEditor
- RotaryField
- SafariMouseWheelFix
- Scroller
- Separators
- SliderField
- Sparklines
- TabPaneNavigator
- TextInput
- TimebarContainer
- Timeline
- TimeMachineLayout
- TimeMachineList
- TimePicker
- ToggleSwitchDesktop
- TransformContainer
- TreeMap
- ViewStack
- WheelList
ToggleSwitchDesktop
Overview
ToggleSwitch component designed for desktop use.
Creating the ToggleSwitch Component
The ToggleSwitch component extends ToggleButton and can be added to any container that implements IVisualElementContainer.
Using the ToggleSwitch Component
Functions just like a ToggleButton. Most of the logic is handled in the skin, but the labels can be set via properties.
Layout
The default skin layout can accurately measure the toggle button based on the labels. It is not necessary to set explicit dimensions.
Animations & Effects
The thumb will animate by default. Customize the skin to change the animation.
Accessibility
Field can be tabbed to and selected/de-selected via the SPACE key when focused just like a vanilla ToggleButton.
Themes & Skinning
A skin is provided for the Spark theme.
Example
See the ToggleSwitch demo application for example code.
Back To Top