ILIAS
trunk Revision v11.0_alpha-1731-gff9cd7e2bd3
|
Interface to be extended by components that have the possibility to bind to Javascript. More...
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... | |
![]() | |
getCanonicalName () | |
Get the canonical name of the component. More... | |
Interface to be extended by components that have the possibility to bind to Javascript.
Definition at line 28 of file JavaScriptBindable.php.
ILIAS\UI\Component\JavaScriptBindable::getOnLoadCode | ( | ) |
Get the currently bound on load code.
Implemented in ILIAS\UI\Component\Symbol\Glyph\Glyph.
Referenced by ILIAS\UI\Implementation\Render\AbstractComponentRenderer\bindOnloadCode(), ILIAS\UI\Implementation\Component\Item\Renderer\renderShy(), and ILIAS\UI\Implementation\Component\Input\Field\Renderer\wrapInFormContext().
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.
Referenced by ILIAS\UI\Implementation\Render\AbstractComponentRenderer\addTriggererOnLoadCode(), ILIAS\GlobalScreen\Scope\MetaBar\Collector\Renderer\NotificationCenterRenderer\attachJSRerenderEvent(), ILIAS\GlobalScreen\Scope\MetaBar\Collector\Renderer\NotificationCenterRenderer\attachJSShowEvent(), ilHelpViewLayoutProvider\getMainBarModification(), ILIAS\UI\Implementation\Component\Input\Field\Renderer\initClientsideFileInput(), ILIAS\UI\Implementation\Component\Input\ViewControl\Renderer\renderFieldSelection(), ILIAS\UI\Implementation\Component\Input\ViewControl\Renderer\renderPagination(), ILIAS\UI\Implementation\Component\Progress\Renderer\renderProgressBar(), ILIAS\UI\Implementation\Component\Input\ViewControl\Renderer\renderSortation(), and JavaScriptBindableTest\testWithAdditionalOnLoadCode().
ILIAS\UI\Component\JavaScriptBindable::withOnLoadCode | ( | Closure | $binder | ) |
Referenced by ILIAS\UI\Implementation\Component\MainControls\Renderer\bindMainbarJS(), and ILIAS\UI\Implementation\Component\MainControls\Renderer\renderMainbarEntry().