ILIAS  release_7 Revision v7.30-3-g800a261c036
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.