ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Close.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25use ILIAS\UI\Implementation\Component\ComponentHelper;
28
29class Close implements C\Button\Close
30{
32 use ComponentHelper;
33 use Triggerer;
34
38 public function withOnClick(Signal $signal): C\Clickable
39 {
40 return $this->withTriggeredSignal($signal, 'click');
41 }
42
46 public function appendOnClick(Signal $signal): C\Clickable
47 {
48 return $this->appendTriggeredSignal($signal, 'click');
49 }
50}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Bulky.php:21
appendTriggeredSignal(C\Signal $signal, string $event)
Append a triggered signal to other signals of the same event.
Definition: Triggerer.php:47
withTriggeredSignal(C\Signal $signal, string $event)
Add a triggered signal, replacing any other signals registered on the same event.
Definition: Triggerer.php:62
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.