\FoundationSwitchField
FoundationSwitchField Displays a Foundation Switch/Toggle Field
<b>Usage</b>
<code>
FoundationSwitchField::create('SwitchField', 'SwitchField', array(
0 => 'Off',
1 => 'On'
))->addExtraClass('large round')
</code>
- Author: Martijn van Nieuwenhoven <info@axyrmedia.nl>
Synopsis
Hierarchy
Extends
- OptionsetField
Methods
public
- getSource() — Gets the first two items from source array, since SwitchField only works with two values.