19declare(strict_types=1);
24use ILIAS\UI\Implementation\Component\ComponentHelper;
69 $this->checkStringArg(
"title",
$title);
82 $this->checkStringArg(
"title",
$title);
104 $clone = clone $this;
122 $classes = [Component::class];
123 $this->checkArgListElements(
"sections", $sections, $classes);
125 $clone = clone $this;
126 $clone->content_sections = $sections;
140 $clone = clone $this;
141 $clone->hidden_sections = $sections;
154 public function withTitleAction($action):
C\
Card
156 $this->checkStringOrSignalArg(
"title_action", $action);
158 $clone = clone $this;
159 if (is_string($action)) {
160 $clone->title_action = $action;
165 $clone->title_action =
null;
166 $clone->setTriggeredSignal($action,
"click");
177 if ($this->title_action !==
null) {
188 $clone = clone $this;
189 $clone->highlight = $status;
withSections(array $sections)
withHighlight(bool $status)
Component $header_section
__construct($title, ?Image $image=null)
withHiddenSections(array $sections)
appendOnClick(Signal $signal)
withOnClick(Signal $signal)
A component is the most general form of an entity in the UI.
appendTriggeredSignal(C\Signal $signal, string $event)
Append a triggered signal to other signals of the same event.
withTriggeredSignal(C\Signal $signal, string $event)
Add a triggered signal, replacing any other signals registered on the same event.
getTriggeredSignalsFor(string $event)
Get signals that are triggered for a certain event.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.