19declare(strict_types=1);
24use ILIAS\UI\Implementation\Component\ComponentHelper;
52 $this->checkArgIsElement(
"type",
$type, self::$types,
"image type");
73 $clone->src = $source;
91 $clone->additional_high_res_sources[$min_width_in_pixels] = $source;
109 $clone = clone $this;
127 $this->checkStringOrSignalArg(
"action",
$action);
128 $clone = clone $this;
135 $clone->action =
null;
136 $clone->setTriggeredSignal(
$action,
"click");
147 if ($this->action !==
null) {
appendOnClick(Signal $signal)
withAdditionalHighResSource(string $source, int $min_width_in_pixels)
getAdditionalHighResSources()
@inheritDoc
withOnClick(Signal $signal)
withSource(string $source)
__construct(string $type, string $source, string $alt)
array $additional_high_res_sources
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.