19 declare(strict_types=1);
44 return $component->getContent();
51 return $component->withAdditionalOnLoadCode(
function (
$id) use ($custom_signals):
string {
53 foreach ($custom_signals as $custom_signal) {
54 $signal_id = $custom_signal[
'signal'];
55 $signal_code = $custom_signal[
'js_code'];
56 $code .=
"$(document).on('$signal_id', function(event, signalData) { $signal_code });";
render(Component\Component $component, RendererInterface $default_renderer)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
registerSignals(Legacy $component)
getAllCustomSignals()
Get a list of all registered signals and their custom JavaScript code.
cannotHandleComponent(Component $component)
This method MUST be called by derived component renderers, if.
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Base class for all component renderers.
bindJavaScript(JavaScriptBindable $component)
Bind the component to JavaScript.