3 declare(strict_types=1);
10 $factory = $DIC->ui()->factory();
11 $renderer = $DIC->ui()->renderer();
13 $message =
'Here you see some standard interruptive items:';
14 $icon = $factory->image()->standard(
'./templates/default/images/standard/icon_crs.svg',
'');
15 $modal = $factory->modal()->interruptive(
'My Title',
$message,
"#")
16 ->withAffectedItems(array(
17 $factory->modal()->interruptiveItem()->standard(
21 'Note, this item is currently only to be used in interruptive Modal.' 23 $factory->modal()->interruptiveItem()->standard(
25 'Title of the other Item',
30 $button = $factory->button()->standard(
'Show some standard interruptive items',
'')
31 ->withOnClick($modal->getShowSignal());
34 return $renderer->render([$button, $modal]);