3 declare(strict_types=1);
20 $factory = $DIC->ui()->factory();
32 $content = $factory->legacy(
'This text is rendered async');
37 $async_url =
$_SERVER[
'REQUEST_URI'] .
'&renderPopoverAsync=1';
38 $popover = $factory->popover()->standard($factory->legacy(
''))
40 ->withAsyncContentUrl($async_url);
41 $button = $factory->button()->standard(
'Show Popover',
'#')
42 ->withOnClick($popover->getShowSignal());
44 return $renderer->render([$popover, $button]);
show_popover_with_async_loaded_content()
description: > Example for rendering a standard popover with asynchronous loaded content...