ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
modal.php File Reference

Go to the source code of this file.

Functions

 modal ()
 This second example shows a scenario in which the Close Button is used in an overlay as indicated in the purpose description. More...
 

Function Documentation

◆ modal()

modal ( )

This second example shows a scenario in which the Close Button is used in an overlay as indicated in the purpose description.

Note that in the Modal the Close Button is properly placed in the top right corner.

Definition at line 7 of file modal.php.

References $DIC, and $factory.

Referenced by ilWebDAVMountInstructionsModalGUI\__construct(), ilBiblFieldFilterTableGUI\__construct(), ilWebDAVMountInstructionsModalGUI\getModalShowSignalId(), ilWebDAVMountInstructionsModalGUI\getRenderedModal(), and DropzoneRendererTest\getUIFactory().

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 }
$DIC
Definition: xapitoken.php:46
$factory
Definition: metadata.php:58
+ Here is the caller graph for this function: