Class WhSwitch
- CInputWidget
- WhSwitch
Package: YiiWheels\widgets\switch
Copyright: Copyright © 2amigos.us 2013-
License: New BSD License
Author: Antonio Ramirez <amigo.cobos@gmail.com>
Located at widgets/switch/WhSwitch.php
Copyright: Copyright © 2amigos.us 2013-
License: New BSD License
Author: Antonio Ramirez <amigo.cobos@gmail.com>
Located at widgets/switch/WhSwitch.php
Methods summary
public
|
|
public
|
|
public
|
|
public
|
#
registerClientScript( )
Registers required client script for bootstrap typeahead. It is not used through bootstrap->registerPlugin in order to attach events if any |
Magic methods summary
Properties summary
public
string
|
$inputType |
#
input type. It can be 'radio' or 'checkbox' |
public
string
|
$size |
#
size of switch button. Supports 'large', 'small' or 'mini' |
public
string
|
$onColor |
#
color when is on. It can be any of bootstrap button states. Defaults to 'primary'. |
public
string
|
$offColor |
#
color when is off. It can be any of bootstrap button states. Defaults to 'warning'. |
public
boolean
|
$animated |
#
whether the slide is animated or not. |
public
string
|
$onLabel |
#
the label when is on. Defaults to 'On'. |
public
string
|
$offLabel |
#
the label when is off. Defaults to 'Off'. |
public
string
|
$textLabel |
#
the text label. Defaults to null. |
public
string[]
|
$events |
#
the JavaScript event handlers. |
public
boolean
|
$debugMode |
#
whether to display minified versions of the files or not |