ILIAS  release_7 Revision v7.30-3-g800a261c036
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
12
13class Close implements C\Button\Close
14{
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}
An exception for terminatinating execution or to throw for unit testing.
withTriggeredSignal(Component\Signal $signal, $event)
Add a triggered signal, replacing any other signals registered on the same event.
Definition: Triggerer.php:48
appendTriggeredSignal(Component\Signal $signal, $event)
Append a triggered signal to other signals of the same event.
Definition: Triggerer.php:31
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
trait ComponentHelper
Provides common functionality for component implementations.