ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
with_load_anim.php
Go to the documentation of this file.
1
<?
php
2
function
with_load_anim
()
3
{
4
global
$DIC
;
5
$f
= $DIC->ui()->factory();
6
$renderer = $DIC->ui()->renderer();
7
8
return
$renderer->render(
9
$f
->button()->primary(
"Goto ILIAS"
,
""
)
10
->withLoadingAnimationOnClick(
true
)
11
->withOnLoadCode(
function
(
$id
) {
12
return
13
"$('#$id').click(function(e) { if (!$('#$id').hasClass('disabled')) {alert('Do Stuff');}});"
;
14
})
15
);
16
}
$DIC
global $DIC
Definition:
saml.php:7
$id
if(!array_key_exists('StateId', $_REQUEST)) $id
Definition:
expirywarning.php:14
$f
$f
Definition:
fetch_windows_zones.php:31
with_load_anim
with_load_anim()
Definition:
with_load_anim.php:2
php
src
UI
examples
Button
Primary
with_load_anim.php
Generated on Thu Jan 16 2025 19:02:38 for ILIAS by
1.8.13 (using
Doxyfile
)