19 declare(strict_types=1);
37 $factory = $DIC->ui()->factory();
40 $message =
'Here you see some key-value interruptive items:';
41 $modal = $factory->modal()->interruptive(
'My Title',
$message,
"#")
42 ->withAffectedItems(array(
43 $factory->modal()->interruptiveItem()->keyValue(
48 $factory->modal()->interruptiveItem()->keyValue(
53 $factory->modal()->interruptiveItem()->keyValue(
56 'really really long value, much much longer than any value needs to be, that should be cut off at some point' 59 $button = $factory->button()->standard(
'Show some key-value interruptive Items',
'')
60 ->withOnClick($modal->getShowSignal());
63 return $renderer->render([$button, $modal]);
base()
description: > Example for rendering a key value interruptive item modal.