ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
show_a_single_text.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
ILIAS\UI\examples\Modal\LightboxTextPage
;
6
7
function
show_a_single_text
()
8
{
9
global
$DIC
;
10
$factory
= $DIC->ui()->factory();
11
$renderer = $DIC->ui()->renderer();
12
$page =
$factory
->modal()->lightboxTextPage(
'Some text content you have to agree on!'
,
'User Agreement'
);
13
$modal =
$factory
->modal()->lightbox($page);
14
$button =
$factory
->button()->standard(
'Show Text'
,
''
)
15
->withOnClick($modal->getShowSignal());
16
17
return
$renderer->render([$button, $modal]);
18
}
ILIAS\UI\examples\Modal\LightboxTextPage\show_a_single_text
show_a_single_text()
Definition:
show_a_single_text.php:7
ILIAS\UI\examples\Modal\LightboxTextPage
Definition:
show_a_single_text.php:5
$DIC
global $DIC
Definition:
feed.php:28
$factory
$factory
Definition:
metadata.php:75
src
UI
examples
Modal
LightboxTextPage
show_a_single_text.php
Generated on Mon Sep 1 2025 22:03:00 for ILIAS by
1.8.13 (using
Doxyfile
)