30 return $component->getContent();
38 return [Component\Legacy\Legacy::class];
49 return $component->withAdditionalOnLoadCode(
function ($id) use ($custom_signals) {
51 foreach ($custom_signals as $custom_signal) {
52 $signal_id = $custom_signal[
'signal'];
53 $signal_code = $custom_signal[
'js_code'];
54 $code .=
"$(document).on('$signal_id', function(event, signalData) { $signal_code });";
checkComponent(Component $component)
Check if a given component fits this renderer and throw if that is not the case. ...
registerSignals(Legacy $component)
getAllCustomSignals()
Get a list of all registered signals and their custom JavaScript code.
getComponentInterfaceName()
render(Component $component, Renderer $default_renderer)
Render the component if possible and delegate additional rendering to the default_renderer.
Base class for all component renderers.
bindJavaScript(JavaScriptBindable $component)
Bind the component to JavaScript.