ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ILIAS\UI\Component\Clickable Interface Reference
+ Inheritance diagram for ILIAS\UI\Component\Clickable:
+ Collaboration diagram for ILIAS\UI\Component\Clickable:

Public Member Functions

 withOnClick (Signal $signal)
 Get a component like this, triggering a signal of another component on click. More...
 
 appendOnClick (Signal $signal)
 Get a component like this, triggering a signal of another component on click. More...
 
- Public Member Functions inherited from ILIAS\UI\Component\Triggerer
 withResetTriggeredSignals ()
 Get a component like this but reset any triggered signals of other components. More...
 
 getTriggeredSignals ()
 Get all triggered signals of this component. More...
 
- Public Member Functions inherited from ILIAS\UI\Component\JavaScriptBindable
 withOnLoadCode (\Closure $binder)
 
 withAdditionalOnLoadCode (\Closure $binder)
 Add some onload-code to the component instead of replacing the existing one. More...
 
 getOnLoadCode ()
 Get the currently bound on load code. More...
 

Detailed Description

Definition at line 11 of file Clickable.php.

Member Function Documentation

◆ appendOnClick()

ILIAS\UI\Component\Clickable::appendOnClick ( Signal  $signal)

Get a component like this, triggering a signal of another component on click.

In contrast to withOnClick, the signal is appended to existing signals for the click event.

Parameters
Signal$signal
Returns
$this

◆ withOnClick()

ILIAS\UI\Component\Clickable::withOnClick ( Signal  $signal)

Get a component like this, triggering a signal of another component on click.

Note: Any previous signals registered on click are replaced.

Parameters
Signal$signalA signal of another component
Returns
$this

Implemented in ILIAS\UI\Component\Button\Button.


The documentation for this interface was generated from the following file: