ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
JavaScriptBinding.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
27{
33 public function createId(): string;
34
38 public function addOnLoadCode(string $code): void;
39
44 public function getOnLoadCodeAsync(): string;
45
61 public function clearOnLoadCodeAsync(): void;
62}
Provides methods to interface with javascript.
addOnLoadCode(string $code)
Add some JavaScript-statements to the on-load handler of the page.
clearOnLoadCodeAsync()
Clears all JavaScript code currently registered for the async context.
getOnLoadCodeAsync()
Get all the registered on-load javascript code for the async context, e.g.