Public Member Functions | |
__construct ($extrajs, $inlinejs) | |
Create a new custom action. | |
getExtraJS () | |
Retrieve extra JavaScript. | |
getInlineJS () | |
Retrieve inline JavaScript. | |
setExtraJS ($js) | |
Change the extra JavaScript field. | |
setInlineJS ($js) | |
Change the inline JavaScript field. |
Use this class to create a custom action that consists solely of JavaScript (otherwise, subclass TKAction). If you use a string or an array of two strings when calling TKComponent::setAction then TKComponent will implicitly create a TKCustomAction for you.
TKCustomAction::__construct | ( | $ | extrajs, | |
$ | inlinejs | |||
) |
Create a new custom action.
$extrajs | [string]: JavaScript to be embedded in the head section of the page | |
$inlinejs | [string]: JavaScript to be embedded in the event handler |
TKCustomAction::getExtraJS | ( | ) |
Retrieve extra JavaScript.
TKCustomAction::getInlineJS | ( | ) |
Retrieve inline JavaScript.
TKCustomAction::setExtraJS | ( | $ | js | ) |
Change the extra JavaScript field.
$js | [string]: new JavaScript for extrajs |
TKCustomAction::setInlineJS | ( | $ | js | ) |
Change the inline JavaScript field.
$js | [string]: new JavaScript for inelinejs |