Public Member Functions | |
__construct ($actions) | |
Creates a new toggle action. |
A toggle action takes an array of other actions. Each time the toggle action is invoked by JavaScript, it executes another action in the array. When it reaches the end of the array, it goes back to the beginning. If you have two actions to execute, then you can create a traditional light-switch-like two-state toggle.
TKToggleAction::__construct | ( | $ | actions | ) |
Creates a new toggle action.
$actions | [array]: array of TKAction's to toggle between |