ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
base.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
7 function base()
8 {
9  global $DIC;
10  $factory = $DIC->ui()->factory();
11  $renderer = $DIC->ui()->renderer();
12 
13  $message = 'Here you see some key-value interruptive items:';
14  $modal = $factory->modal()->interruptive('My Title', $message, "#")
15  ->withAffectedItems(array(
16  $factory->modal()->interruptiveItem()->keyValue(
17  '10',
18  'First Key',
19  'first value'
20  ),
21  $factory->modal()->interruptiveItem()->keyValue(
22  '20',
23  'Second Key',
24  'second value'
25  ),
26  $factory->modal()->interruptiveItem()->keyValue(
27  '30',
28  'Third Key',
29  'really really long value, much much longer than any value needs to be, that should be cut off at some point'
30  )
31  ));
32  $button = $factory->button()->standard('Show some key-value interruptive Items', '')
33  ->withOnClick($modal->getShowSignal());
34 
35 
36  return $renderer->render([$button, $modal]);
37 }
global $DIC
Definition: feed.php:28
$message
Definition: xapiexit.php:32