ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ 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
17
function
show_a_single_text
()
18
{
19
global
$DIC
;
20
$factory = $DIC->ui()->factory();
21
$renderer
= $DIC->ui()->renderer();
22
$page = $factory->modal()->lightboxTextPage(
'Some text content you have to agree on!'
,
'User Agreement'
);
23
$modal = $factory->modal()->lightbox($page);
24
$button = $factory->button()->standard(
'Show Text'
,
''
)
25
->withOnClick($modal->getShowSignal());
26
27
return
$renderer
->render([$button, $modal]);
28
}
ILIAS\UI\examples\Modal\LightboxTextPage\show_a_single_text
show_a_single_text()
description: > Example for rendering a lightbox text page modal with a single text.
Definition:
show_a_single_text.php:17
$renderer
$renderer
Definition:
build_bootstrap.php:83
ILIAS\UI\examples\Modal\LightboxTextPage
Definition:
show_a_single_text.php:5
$DIC
global $DIC
Definition:
shib_login.php:25
components
ILIAS
UI
src
examples
Modal
LightboxTextPage
show_a_single_text.php
Generated on Wed Sep 10 2025 15:16:45 for ILIAS by
1.8.13 (using
Doxyfile
)