ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
with_custom_labels.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\examples\Modal\Interruptive
;
22
34
function
with_custom_labels
()
35
{
36
global
$DIC
;
37
$factory =
$DIC
->ui()->factory();
38
$renderer
=
$DIC
->ui()->renderer();
39
40
$modal = $factory->modal()->interruptive(
41
'Interrupting something'
,
42
'Am I interrupting you?'
,
43
'#'
44
)->withActionButtonLabel(
45
'Yeah you do!'
46
)->withCancelButtonLabel(
47
'Nah, not really'
48
);
49
50
$trigger = $factory->button()->standard(
'I will interrupt you'
, $modal->getShowSignal());
51
52
return
$renderer
->render([$modal, $trigger]);
53
}
$renderer
$renderer
Definition:
build_bootstrap.php:83
ILIAS\UI\examples\Modal\Interruptive
Definition:
base.php:21
ILIAS\UI\examples\Modal\Interruptive\with_custom_labels
with_custom_labels()
Definition:
with_custom_labels.php:34
$DIC
global $DIC
Definition:
shib_login.php:26
components
ILIAS
UI
src
examples
Modal
Interruptive
with_custom_labels.php
Generated on Sat Oct 18 2025 23:04:41 for ILIAS by
1.9.4 (using
Doxyfile
)