3 declare(strict_types=1);
    11     $ui = $DIC->ui()->factory();
    14                ->standard(
'Some information')
    15                ->withDescription(
'A very long text.');
    18     $another_item = $ui->item()
    19                        ->standard(
'Some other information')
    20                        ->withDescription(
'Another very long text.')
    22                            'Belongs to' => 
'No one',
    23                            'Created on' => 
'June the 15th',
    24                            'Awarded by' => 
'John Doe',
    25                            'Valid until' => 
'Forever',
    29                ->standard(
'A card title')
    30                ->withSections([$item])
    31                ->withHiddenSections([$another_item]);
    32     $box = $ui->modal()->lightboxCardPage($card);
    33     $modal = $ui->modal()->lightbox($box);
    37         ->standard(
'Show Modal', 
'')
    38         ->withOnClick($modal->getShowSignal());
    40     return $DIC->ui()->renderer()->render([$button, $modal]);
 
show_modal_on_button_click()