19 declare(strict_types=1);
33 class Card implements C\Card
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)
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)
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getTriggeredSignalsFor(string $event)
Get signals that are triggered for a certain event.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
withHiddenSections(array $sections)
Component $header_section
__construct($title, ?Image $image=null)
appendOnClick(Signal $signal)
withOnClick(Signal $signal)