ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
JavaScriptBindable.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2016 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
5namespace ILIAS\UI\Component;
6
12{
43 public function withOnLoadCode(\Closure $binder);
44
54 public function withAdditionalOnLoadCode(\Closure $binder);
55
61 public function getOnLoadCode();
62}
An exception for terminatinating execution or to throw for unit testing.
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.