ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ILIAS\UI\Component\JavaScriptBindable Interface Reference

Interface to be extended by components that have the possibility to bind to Javascript. More...

+ Inheritance diagram for ILIAS\UI\Component\JavaScriptBindable:
+ Collaboration diagram for ILIAS\UI\Component\JavaScriptBindable:

Public Member Functions

 withOnLoadCode (\Closure $binder)
 
 withAdditionalOnLoadCode (\Closure $binder)
 Add some onload-code to the component instead of replacing the existing one. More...
 
 getOnLoadCode ()
 Get the currently bound on load code. More...
 

Detailed Description

Interface to be extended by components that have the possibility to bind to Javascript.

Definition at line 11 of file JavaScriptBindable.php.

Member Function Documentation

◆ getOnLoadCode()

ILIAS\UI\Component\JavaScriptBindable::getOnLoadCode ( )

Get the currently bound on load code.

Returns
|null
Examples:
/usr/local/src/ilias/release_5-4/src/UI/Component/JavaScriptBindable.php.

Referenced by ILIAS\UI\Implementation\Render\AbstractComponentRenderer\bindOnloadCode().

+ Here is the caller graph for this function:

◆ withAdditionalOnLoadCode()

ILIAS\UI\Component\JavaScriptBindable::withAdditionalOnLoadCode ( \Closure  $binder)

Add some onload-code to the component instead of replacing the existing one.

Must work like getOnLoadCode was called and the result of the existing binder (if any) and the result of the new binder are concatenated in a new binder.

Parameters
\Closure$binder
Returns
self
Examples:
/usr/local/src/ilias/release_5-4/src/UI/Component/JavaScriptBindable.php.

Referenced by ILIAS\UI\Implementation\Render\AbstractComponentRenderer\addTriggererOnLoadCode().

+ Here is the caller graph for this function:

◆ withOnLoadCode()

ILIAS\UI\Component\JavaScriptBindable::withOnLoadCode ( \Closure  $binder)

The documentation for this interface was generated from the following file: