Class WhToggleAction
WhToggleAction action class
Works in conjunction with WhToggleColumn widget in order to ease the task of the developer to update the the attribute displayed on the grid. Just attach to the controller you wish to make the calls to.
- CAction
- WhToggleAction
Package: YiiWheels\widgets\toggle
Copyright: Copyright © 2amigos.us 2013-
License: New BSD License
Author: Antonio Ramirez <amigo.cobos@gmail.com>
Located at widgets/grid/actions/WhToggleAction.php
Copyright: Copyright © 2amigos.us 2013-
License: New BSD License
Author: Antonio Ramirez <amigo.cobos@gmail.com>
Located at widgets/grid/actions/WhToggleAction.php
Methods summary
public
|
|
protected
CActiveRecord
|
Magic methods summary
Properties summary
public
string
|
$modelName |
#
the name of the model we are going to toggle values to |
public
boolean
|
$exceptionOnNullModel |
#
whether to throw an exception if we cannot find a model requested by the id |
public
array
|
$additionalCriteriaOnLoadModel |
#
additional criteria to use to get the model |
public
mixed
|
$redirectRoute |
#
the route to redirect the call after updating attribute |
public
integer|string
|
$yesValue |
#
the value to update the model to [yes|no] standard toggle options, but you can toggle any value. |
public
integer|string
|
$noValue |
#
the value to update the model to [yes|no] |
public
mixed
|
$ajaxResponseOnSuccess |
#
the response to return to an AJAX call when the attribute was successfully saved. |
public
mixed
|
$ajaxResponseOnFailed |
#
the response to return to an AJAX call when failed to update the attribute. |