ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
Close.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 2016 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4 
6 
7 use ILIAS\UI\Component as C;
12 
13 class Close implements C\Button\Close
14 {
16  use ComponentHelper;
17  use Triggerer;
18 
22  public function withOnClick(Signal $signal)
23  {
24  return $this->withTriggeredSignal($signal, 'click');
25  }
26 
30  public function appendOnClick(Signal $signal)
31  {
32  return $this->appendTriggeredSignal($signal, 'click');
33  }
34 }
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
trait ComponentHelper
Provides common functionality for component implementations.
appendTriggeredSignal(Component\Signal $signal, $event)
Append a triggered signal to other signals of the same event.
Definition: Triggerer.php:31
withTriggeredSignal(Component\Signal $signal, $event)
Add a triggered signal, replacing any other signals registered on the same event. ...
Definition: Triggerer.php:48