109 $classes = [\ILIAS\UI\Component\Component::class];
112 $clone = clone $this;
113 $clone->content_sections = $sections;
128 public function withTitleAction($action)
132 $clone = clone $this;
133 if (is_string($action)) {
134 $clone->title_action = $action;
139 $clone->title_action =
null;
140 $clone->setTriggeredSignal($action,
"click");
151 if ($this->title_action !==
null) {
162 $clone = clone $this;
163 $clone->highlight = $status;
An exception for terminatinating execution or to throw for unit testing.
withSections(array $sections)
withImage(\ILIAS\UI\Component\Image\Image $image)
__construct($title, \ILIAS\UI\Component\Image\Image $image=null)
appendOnClick(Signal $signal)
withOnClick(Signal $signal)
A component is the most general form of an entity in the UI.
checkStringOrSignalArg($which, $value)
Throw an InvalidArgumentException if $value is no string or Signal.
withTriggeredSignal(Component\Signal $signal, $event)
Add a triggered signal, replacing any other signals registered on the same event.
checkStringArg($which, $value)
Throw an InvalidArgumentException if $value is no string.
appendTriggeredSignal(Component\Signal $signal, $event)
Append a triggered signal to other signals of the same event.
getTriggeredSignalsFor($event)
Get signals that are triggered for a certain event.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
checkArgListElements($which, array &$values, $classes)
Check every element of the list if it is an instance of one of the given classes.
trait ComponentHelper
Provides common functionality for component implementations.
Class ChatMainBarProvider \MainMenu\Provider.