ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
with_js_binding.php
Go to the documentation of this file.
1<?php
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()
An exception for terminatinating execution or to throw for unit testing.
if(!array_key_exists('StateId', $_REQUEST)) $id
global $DIC
Definition: saml.php:7