ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ 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
->button()->standard(
"Goto ILIAS"
,
"#"
)
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.
$id
if(!array_key_exists('StateId', $_REQUEST)) $id
Definition:
expirywarning.php:14
$f
$f
Definition:
fetch_windows_zones.php:31
$DIC
global $DIC
Definition:
saml.php:7
src
UI
examples
Button
Standard
with_js_binding.php
Generated on Thu Oct 2 2025 19:02:06 for ILIAS by
1.9.4 (using
Doxyfile
)