3 declare(strict_types=1);
20 $factory = $DIC->ui()->factory();
23 $message =
'Here you see some standard interruptive items:';
24 $icon = $factory->image()->standard(
'./assets/images/standard/icon_crs.svg',
'');
25 $modal = $factory->modal()->interruptive(
'My Title', $message,
"#")
26 ->withAffectedItems(array(
27 $factory->modal()->interruptiveItem()->standard(
31 'Note, this item is currently only to be used in interruptive Modal.' 33 $factory->modal()->interruptiveItem()->standard(
35 'Title of the other Item',
40 $button = $factory->button()->standard(
'Show some standard interruptive items',
'')
41 ->withOnClick($modal->getShowSignal());
44 return $renderer->render([$button, $modal]);
base()
description: > Example for rendering a standard interruptive item modal.