Class WhToggleButton
- CInputWidget
-
WhToggleButton
Package: YiiWheels\widgets\toggle
Copyright: Copyright © 2amigos.us 2013-
License: New BSD License
Author: Antonio Ramirez <amigo.cobos@gmail.com>
Located at widgets/toggle/WhToggleButton.php
Copyright: Copyright © 2amigos.us 2013-
License: New BSD License
Author: Antonio Ramirez <amigo.cobos@gmail.com>
Located at widgets/toggle/WhToggleButton.php
Methods summary
public
|
|
public
|
|
public
|
|
protected
|
|
protected
array
|
Magic methods summary
Properties summary
public
string
|
$onChange |
#
the javascript function The function signature is<span
class="php-keyword1">function</span>(<span
class="php-var">$el</span>, status, e)
Example: array( class'=>'WhToggleColumn', 'onChange'=>'js:function($el, status, e){ console.log($el, status, e); }', ), |
public
integer
|
$width |
#
the width of the toggle button |
public
integer
|
$height |
#
the height of the toggle button |
public
boolean
|
$animated |
#
whether to use animation or not |
public
mixed
|
$transitionSpeed |
#
the transition speed (toggle movement) |
public
string
|
$enabledLabel |
#
the label to display on the enabled side |
public
string
|
$disabledLabel |
#
the label to display on the disabled side |
public
string
|
$enabledStyle |
#
the style of the toggle button enable style Accepted values ["primary", "danger", "info", "success", "warning"] or nothing |
public
string
|
$disabledStyle |
#
the style of the toggle button disabled style Accepted values ["primary", "danger", "info", "success", "warning"] or nothing |
public
array
|
$customEnabledStyle |
#
a custom style for the enabled option. Format ... 'customEnabledStyle'=>array( 'background'=>'#FF00FF', 'gradient'=>'#D300D3', 'color'=>'#FFFFFF' ), ... |
public
array
|
$customDisabledStyle |
#
a custom style for the disabled option. Format ... 'customDisabledStyle'=>array( 'background'=>'#FF00FF', 'gradient'=>'#D300D3', 'color'=>'#FFFFFF' ), ... |
public
string
|
$tagName |
#
the tag name. Defaults to 'div'. |