ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
with_js_binding.php
Go to the documentation of this file.
1
<?
php
2
function
with_js_binding
() {
3
global
$DIC
;
4
$f = $DIC->ui()->factory();
5
$renderer = $DIC->ui()->renderer();
6
7
return
$renderer->render(
8
$f->button()->standard(
"Goto ILIAS"
,
"#"
)
9
->withOnLoadCode(
function
($id) {
10
return
11
"$(\"#$id\").click(function() { alert(\"Clicked: $id\"); return false;});"
;
12
})
13
);
14
}
php
$DIC
global $DIC
Definition:
imagemanager.php:32
with_js_binding
with_js_binding()
Definition:
with_js_binding.php:2
src
UI
examples
Button
Standard
with_js_binding.php
Generated on Fri Feb 21 2025 19:01:22 for ILIAS by
1.8.13 (using
Doxyfile
)