ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
modal.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
ILIAS\UI\examples\Button\Close
;
6
12
function
modal
()
13
{
14
global
$DIC
;
15
$factory
= $DIC->ui()->factory();
16
$renderer = $DIC->ui()->renderer();
17
18
$modal =
$factory
->modal()->roundtrip(
19
'Close Button Demo'
,
20
$factory
->legacy(
'See the Close Button in the top right corner.'
)
21
);
22
$button1 =
$factory
->button()->standard(
'Show Close Button Demo'
,
'#'
)
23
->withOnClick($modal->getShowSignal());
24
25
return
$renderer->render([$button1, $modal]);
26
}
$DIC
global $DIC
Definition:
feed.php:28
ILIAS\UI\examples\Button\Close\modal
modal()
This second example shows a scenario in which the Close Button is used in an overlay as indicated in ...
Definition:
modal.php:12
ILIAS\UI\examples\Button\Close
Definition:
base.php:5
$factory
$factory
Definition:
metadata.php:75
src
UI
examples
Button
Close
modal.php
Generated on Sun Aug 31 2025 22:02:49 for ILIAS by
1.8.13 (using
Doxyfile
)