3 declare(strict_types=1);
36 abstract class Modal implements M\Modal
68 $clone->async_render_url =
$url;
78 $clone->close_with_keyboard = $state;
111 $clone = clone $this;
147 $this->show_signal = $this->signal_generator->create();
148 $this->close_signal = $this->signal_generator->create();
appendTriggeredSignal(C\Signal $signal, string $event)
Append a triggered signal to other signals of the same event.
withResetSignals()
Get a component like this but reset (regenerate) its signals.static
withAsyncRenderUrl(string $url)
Get a modal like this who's content is rendered via ajax by the given $url before the modal is shown...
getAsyncRenderUrl()
Get the url returning the rendered modal, if the modals content should be rendered via ajax...
withTriggeredSignal(C\Signal $signal, string $event)
Add a triggered signal, replacing any other signals registered on the same event. ...
getCloseWithKeyboard()
Returns if this modal can be closed with the keyboard (ESC key)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
bool $close_with_keyboard
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
__construct(SignalGeneratorInterface $signal_generator)
getCloseSignal()
Get the signal to close this modal in the frontend.
getShowSignal()
Get the signal to show this modal in the frontend.
SignalGeneratorInterface $signal_generator
initSignals()
Set the show and close signals for this modal.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
withCloseWithKeyboard(bool $state)
Get a modal like this which can or cannot be closed by keyboard (ESC), depending on the given $state...
withOnClose(Signal $signal)
Get a component like this, triggering a signal of another component on close.
appendOnClose(Signal $signal)
Get a component like this, triggering a signal of another component on close.
appendOnLoad(Signal $signal)
Get a component like this, triggering a signal of another component on load.In contrast to withOnLoad...
withOnLoad(Signal $signal)
Trigger a signal of another component on load.A signal of another component static ...