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