ILIAS  release_8 Revision v8.23
modal.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
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 }
global $DIC
Definition: feed.php:28
modal()
This second example shows a scenario in which the Close Button is used in an overlay as indicated in ...
Definition: modal.php:12
$factory
Definition: metadata.php:75