ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
JavaScriptBindable.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\UI\Component;
22
23use Closure;
24
29{
59 public function withOnLoadCode(Closure $binder);
60
69 public function withAdditionalOnLoadCode(Closure $binder);
70
74 public function getOnLoadCode(): ?Closure;
75}
Interface to be extended by components that have the possibility to bind to Javascript.
withAdditionalOnLoadCode(Closure $binder)
Add some onload-code to the component instead of replacing the existing one.
getOnLoadCode()
Get the currently bound on load code.