19 declare(strict_types=1);
39 $factory = $DIC->ui()->factory();
42 $image = $factory->image()->responsive(
"./assets/images/logo/HeaderIcon.svg",
"Thumbnail Example");
43 $card = $factory->card()->standard(
"Title", $image)->withSections(array($factory->legacy()->content(
"Hello World, I'm a card")));
44 $popover = $factory->popover()->standard($card)->withTitle(
'Card');
45 $button = $factory->button()->standard(
'Show Card',
'#')
46 ->withOnClick($popover->getShowSignal());
48 return $renderer->render([$popover, $button]);
show_card_in_popover()
description: > Example for rendering a standard popover.