ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
modal.php
Go to the documentation of this file.
1<?php
7function modal()
8{
9 global $DIC;
10 $factory = $DIC->ui()->factory();
11 $renderer = $DIC->ui()->renderer();
12
13 $modal = $factory->modal()->roundtrip(
14 'Close Button Demo',
15 $factory->legacy('See the Close Button in the top right corner.')
16 );
17 $button1 = $factory->button()->standard('Show Close Button Demo', '#')
18 ->withOnClick($modal->getShowSignal());
19
20 return $renderer->render([$button1, $modal]);
21}
An exception for terminatinating execution or to throw for unit testing.
$factory
Definition: metadata.php:58
modal()
This second example shows a scenario in which the Close Button is used in an overlay as indicated in ...
Definition: modal.php:7
$DIC
Definition: xapitoken.php:46