Go to the source code of this file.
◆ with_js_binding()
Definition at line 2 of file with_js_binding.php.
References $DIC, and $id.
5 $f = $DIC->ui()->factory();
6 $renderer = $DIC->ui()->renderer();
8 return $renderer->render(
9 $f->button()->standard(
"Goto ILIAS",
"#")
10 ->withOnLoadCode(
function (
$id) {
12 "$(\"#$id\").click(function() { alert(\"Clicked: $id\"); return false;});";
if(!array_key_exists('StateId', $_REQUEST)) $id