ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
with_js_binding.php
Go to the documentation of this file.
1
<?
php
2
function
with_js_binding
()
3
{
4
global
$DIC
;
5
$f
=
$DIC
->ui()->factory();
6
$renderer =
$DIC
->ui()->renderer();
7
8
return
$renderer->render(
9
$f
->symbol()->glyph()->user(
"#"
)
10
->withOnLoadCode(function ($id) {
11
return
12
"$(\"#$id\").click(function() { alert(\"Clicked: $id\"); return false; });"
;
13
})
14
);
15
}
with_js_binding
with_js_binding()
Definition:
with_js_binding.php:2
php
An exception for terminatinating execution or to throw for unit testing.
Vendor\Package\$f
$f
Definition:
example_cleaned.php:31
$DIC
$DIC
Definition:
xapitoken.php:46
src
UI
examples
Symbol
Glyph
User
with_js_binding.php
Generated on Fri Oct 3 2025 20:01:16 for ILIAS by
1.9.4 (using
Doxyfile
)