|
|
string | $event |
| | $event The DOM event that will trigger this action when caught
|
| |
| string | $jsfunction = false |
| | A function name to call when the button is clicked The JS function you create must have two arguments:
|
| |
|
array | $jsfunctionargs = [] |
| | An array of arguments to pass to the JS function.
|
| |
◆ __construct()
| core\output\actions\component_action::__construct |
( |
| $event, |
|
|
| $jsfunction, |
|
|
| $jsfunctionargs = [] ) |
Constructor.
- Parameters
-
| string | $event | DOM event |
| string | $jsfunction | An optional JS function. Required if jsfunctionargs is given |
| array | $jsfunctionargs | An array of arguments to pass to the jsfunction |
◆ export_for_template()
| core\output\actions\component_action::export_for_template |
( |
renderer_base | $output | ) |
|
Export for template.
- Parameters
-
| renderer_base | $output | The renderer. |
- Return values
-
Implements core\output\templatable.
◆ $jsfunction
| string core\output\actions\component_action::$jsfunction = false |
A function name to call when the button is clicked The JS function you create must have two arguments:
- The event object
- An object/array of arguments ($jsfunctionargs)
The documentation for this class was generated from the following file:
- lib/classes/output/actions/component_action.php