3declare(strict_types=1);
24use ILIAS\UI\Implementation\Component\ComponentHelper;
51 $this->checkArgIsElement(
"type",
$type, self::$types,
"image type");
107 $this->checkStringOrSignalArg(
"action",
$action);
108 $clone = clone $this;
115 $clone->action =
null;
116 $clone->setTriggeredSignal(
$action,
"click");
127 if ($this->action !==
null) {
appendOnClick(Signal $signal)
withOnClick(Signal $signal)
withSource(string $source)
__construct(string $type, string $source, string $alt)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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.