Go to the source code of this file.
◆ show_popover_with_vertical_scrollbars()
show_popover_with_vertical_scrollbars |
( |
| ) |
|
Definition at line 2 of file show_popover_with_vertical_scrollbars.php.
3{
6 $renderer =
$DIC->ui()->renderer();
7
8
9
10
11
12 $series = [
13 'Breaking Bad',
14 'Big Bang Theory',
15 'Dexter',
16 'Better Call Saul',
17 'Narcos',
18 'Ray Donovan',
19 'Simpsons',
20 'South Park',
21 'Fargo',
22 'Bloodline',
23 'The Walking Dead',
24 'New Girl',
25 'Sons of Anarchy',
26 'How I Met Your Mother',
27 ];
28 $list = $renderer->render(
$factory->listing()->unordered($series));
29
30
31
32
33
34
35 $content = "<div style='max-height: 200px; overflow-y: auto; padding-right: 10px;'>{$list}</div>";
36
37 $popover =
$factory->popover()->standard(
$factory->legacy($content))->withTitle(
'Series');
38 $button =
$factory->button()->standard(
'Show me some Series',
'#')
39 ->withOnClick($popover->getShowSignal());
40
41 return $renderer->render([$popover, $button]);
42}
if(isset($_REQUEST['delete'])) $list
References $DIC, $factory, and $list.