19declare(strict_types=1);
33 $ui =
$DIC->ui()->factory();
36 ->standard(
'Some information')
37 ->withDescription(
'A very long text.');
40 $another_item = $ui->item()
41 ->standard(
'Some other information')
42 ->withDescription(
'Another very long text.')
44 'Belongs to' =>
'No one',
45 'Created on' =>
'June the 15th',
46 'Awarded by' =>
'John Doe',
47 'Valid until' =>
'Forever',
51 ->standard(
'A card title')
52 ->withSections([$item])
53 ->withHiddenSections([$another_item]);
54 $box = $ui->modal()->lightboxCardPage($card);
55 $modal = $ui->modal()->lightbox($box);
59 ->standard(
'Show Modal',
'')
60 ->withOnClick($modal->getShowSignal());
62 return $DIC->ui()->renderer()->render([$button, $modal]);
show_modal_on_button_click()