19 declare(strict_types=1);
36 $factory = $DIC->ui()->factory();
39 $message =
'Here you see some standard interruptive items:';
40 $icon = $factory->image()->standard(
'./assets/images/standard/icon_crs.svg',
'');
41 $modal = $factory->modal()->interruptive(
'My Title',
$message,
"#")
42 ->withAffectedItems(array(
43 $factory->modal()->interruptiveItem()->standard(
47 'Note, this item is currently only to be used in interruptive Modal.' 49 $factory->modal()->interruptiveItem()->standard(
51 'Title of the other Item',
56 $button = $factory->button()->standard(
'Show some standard interruptive items',
'')
57 ->withOnClick($modal->getShowSignal());
60 return $renderer->render([$button, $modal]);
base()
description: > Example for rendering a standard interruptive item modal.