ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
Close.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 
23 use ILIAS\UI\Component as C;
28 
29 class 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 }
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
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.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Bulky.php:21