19declare(strict_types=1);
37 $factory =
$DIC->ui()->factory();
39 $image = $factory->image()->responsive(
"assets/ui-examples/images/Image/mountains.jpg",
"Image source: https://stocksnap.io, Creative Commons CC0 license");
40 $page = $factory->modal()->lightboxImagePage($image,
'Mountains');
41 $modal = $factory->modal()->lightbox($page);
42 $button = $factory->button()->standard(
'Show Image',
'')
43 ->withOnClick($modal->getShowSignal());
45 return $renderer->render([$button, $modal]);