ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
modal.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
19 function modal()
20 {
21  global $DIC;
22  $factory = $DIC->ui()->factory();
23  $renderer = $DIC->ui()->renderer();
24 
25  $modal = $factory->modal()->roundtrip(
26  'Close Button Demo',
27  $factory->legacy('See the Close Button in the top right corner.')
28  );
29  $button1 = $factory->button()->standard('Show Close Button Demo', '#')
30  ->withOnClick($modal->getShowSignal());
31 
32  return $renderer->render([$button1, $modal]);
33 }
$renderer
modal()
description: > This example shows a scenario in which the Close Button is used in an overlay as indi...
Definition: modal.php:19
global $DIC
Definition: shib_login.php:25