3 declare(strict_types=1);
21 $factory = $DIC->ui()->factory();
24 $message =
'Here you see some key-value interruptive items:';
25 $modal = $factory->modal()->interruptive(
'My Title', $message,
"#")
26 ->withAffectedItems(array(
27 $factory->modal()->interruptiveItem()->keyValue(
32 $factory->modal()->interruptiveItem()->keyValue(
37 $factory->modal()->interruptiveItem()->keyValue(
40 'really really long value, much much longer than any value needs to be, that should be cut off at some point' 43 $button = $factory->button()->standard(
'Show some key-value interruptive Items',
'')
44 ->withOnClick($modal->getShowSignal());
47 return $renderer->render([$button, $modal]);
base()
description: > Example for rendering a key value interruptive item modal.