ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Popover.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
27
31interface Popover extends Component, Triggerable
32{
33 public const POS_AUTO = 'auto';
34 public const POS_VERTICAL = 'vertical';
35 public const POS_HORIZONTAL = 'horizontal';
36
40 public function withTitle(string $title): Popover;
41
45 public function getTitle(): string;
46
51 public function withVerticalPosition(): Popover;
52
57 public function withHorizontalPosition(): Popover;
58
62 public function getPosition(): string;
63
72 public function withAsyncContentUrl(string $url): Popover;
73
77 public function getAsyncContentUrl(): string;
78
82 public function getShowSignal(): Signal;
83
88
93 public function withFixedPosition(): Popover;
94
98 public function isFixedPosition(): bool;
99}
A component is the most general form of an entity in the UI.
Definition: Component.php:28
Describes the Popover component.
Definition: Popover.php:32
getAsyncContentUrl()
Get the url returning the rendered content, if the popovers content is rendered via ajax.
withHorizontalPosition()
Get the same popover being rendered to the left or right of the trigger, based on the available space...
withAsyncContentUrl(string $url)
Get a popover like this who's content is rendered via ajax by the given $url before the popover is sh...
withTitle(string $title)
Get the same popover displaying a title above the content.
getShowSignal()
Get the signal to show this popover in the frontend.
getTitle()
Get the title of the popover.
getPosition()
Get the position of the popover.
withVerticalPosition()
Get the same popover being rendered below or above the trigger, based on the available space.
getReplaceContentSignal()
Get the signal to replace the content of this popover.
withFixedPosition()
Get a popover which can be used in fixed places such as the main menu.
This signal replaces the content of a component by ajax.
$url
Definition: shib_logout.php:68