Go to the source code of this file.
◆ with_signal_action()
Example for rendering an Image with a signal as action.
Definition at line 5 of file with_signal_action.php.
6{
7
10 $renderer =
$DIC->ui()->renderer();
11
12
13 $image_in_modal =
$f->image()->standard(
14 "src/UI/examples/Image/mountains.jpg",
15 ""
16 );
17 $page =
$f->modal()->lightboxImagePage($image_in_modal,
"Nice view");
18 $modal =
$f->modal()->lightbox($page);
19
20 $image =
$f->image()->standard(
21 "src/UI/examples/Image/HeaderIconLarge.svg",
22 "Thumbnail Example"
23 )->withAction($modal->getShowSignal());
24
25 $html = $renderer->render([$image, $modal]);
26
28}
References $DIC, $f, and $html.