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