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\RoundTrip
;
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()->roundtrip(
41
'Showing something off'
,
42
[
43
$factory->messageBox()->info(
'I am something.'
),
44
]
45
)->withCancelButtonLabel(
46
'Thank you and goodbye'
47
)->withActionButtons([$factory->button()->standard(
'Nothing todo here'
,
'#'
)]);
48
49
$trigger = $factory->button()->standard(
'I will show you something'
, $modal->getShowSignal());
50
51
return
$renderer
->render([$modal, $trigger]);
52
}
$renderer
$renderer
Definition:
build_bootstrap.php:83
ILIAS\UI\examples\Modal\RoundTrip
Definition:
show_form_in_modal.php:21
ILIAS\UI\examples\Modal\RoundTrip\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
RoundTrip
with_custom_labels.php
Generated on Sat Oct 18 2025 23:04:41 for ILIAS by
1.9.4 (using
Doxyfile
)