5 use \ILIAS\UI\Component;
94 $clone->position = self::POS_VERTICAL;
105 $clone = clone $this;
106 $clone->position = self::POS_HORIZONTAL;
118 $clone = clone $this;
119 $clone->ajax_content_url =
$url;
131 $clone = clone $this;
143 $clone = clone $this;
144 $clone->initSignals();
173 $this->show_signal = $this->signal_generator->create();
174 $this->replace_content_signal = $this->signal_generator->create(
"ILIAS\\UI\\Implementation\\Component\\Popover\\ReplaceContentSignal");
183 $this->fixed_position =
true;
withTitle($title)
Get the same popover displaying a title above the content.Popover
getTitle()
Get the title of the popover.string
__construct(SignalGeneratorInterface $signal_generator)
getPosition()
Get the position of the popover.string
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
trait ComponentHelper
Provides common functionality for component implementations.
checkStringArg($which, $value)
Throw an InvalidArgumentException if $value is no string.
isFixedPosition()
bool whether it's fixed or not
getReplaceContentSignal()
Get the signal to replace the content of this popover.ReplaceContentSignal
initSignals()
Init any signals of this component.
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 triggerer, based on the available spa...
withFixedPosition()
Get a popover which can be used in fixed places such as the main menu.This popover will stay fixed wh...
withVerticalPosition()
Get the same popover being rendered below or above the triggerer, based on the available space...
getShowSignal()
Get the signal to show this popover in the frontend.Signal
withAsyncContentUrl($url)
Get a popover like this who's content is rendered via ajax by the given $url before the popover is sh...
withResetSignals()
Get a component like this but reset (regenerate) its signals.$this