3 declare(strict_types=1);
33 class Card implements C\Card
64 $this->checkStringArg(
"title",
$title);
77 $this->checkStringArg(
"title",
$title);
117 $classes = [Component::class];
118 $this->checkArgListElements(
"sections", $sections, $classes);
120 $clone = clone $this;
121 $clone->content_sections = $sections;
136 public function withTitleAction($action):
C\
Card 138 $this->checkStringOrSignalArg(
"title_action", $action);
140 $clone = clone $this;
141 if (is_string($action)) {
142 $clone->title_action = $action;
147 $clone->title_action = null;
148 $clone->setTriggeredSignal($action,
"click");
159 if ($this->title_action !== null) {
170 $clone = clone $this;
171 $clone->highlight = $status;
withSections(array $sections)
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. ...
withHighlight(bool $status)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
getTriggeredSignalsFor(string $event)
Get signals that are triggered for a certain event.
Component $header_section
__construct($title, Image $image=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
appendOnClick(Signal $signal)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
withOnClick(Signal $signal)