Go to the source code of this file.
◆ show_popover_with_async_loaded_content()
show_popover_with_async_loaded_content |
( |
| ) |
|
Definition at line 2 of file show_popover_with_async_loaded_content.php.
References $_GET, $_SERVER, $DIC, $factory, and exit.
6 $renderer = $DIC->ui()->renderer();
8 if (isset(
$_GET[
'renderPopoverAsync']) &&
$_GET[
'renderPopoverAsync']) {
12 $content =
$factory->legacy(
'This text is rendered async');
13 echo $renderer->render($content);
17 $async_url =
$_SERVER[
'REQUEST_URI'] .
'&renderPopoverAsync=1';
19 ->withTitle(
'Popover')
20 ->withAsyncContentUrl($async_url);
21 $button =
$factory->button()->standard(
'Show Popover',
'#')
22 ->withOnClick($popover->getShowSignal());
24 return $renderer->render([$popover, $button]);
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']