ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Modal.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
30
35{
39 public function getAsyncRenderUrl(): string;
40
49 public function withAsyncRenderUrl(string $url);
50
56 public function withCloseWithKeyboard(bool $state);
57
61 public function getCloseWithKeyboard(): bool;
62
66 public function getShowSignal(): Signal;
67
71 public function getCloseSignal(): Signal;
72}
A component is the most general form of an entity in the UI.
Definition: Component.php:28
Interface to be extended by components that have the possibility to bind to Javascript.
This describes commonalities between the different modals.
Definition: Modal.php:35
getAsyncRenderUrl()
Get the url returning the rendered modal, if the modals content should be rendered via ajax.
withAsyncRenderUrl(string $url)
Get a modal like this who's content is rendered via ajax by the given $url before the modal is shown.
getCloseSignal()
Get the signal to close this modal in the frontend.
withCloseWithKeyboard(bool $state)
Get a modal like this which can or cannot be closed by keyboard (ESC), depending on the given $state.
getCloseWithKeyboard()
Returns if this modal can be closed with the keyboard (ESC key)
getShowSignal()
Get the signal to show this modal in the frontend.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Factory.php:21
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
$url
Definition: shib_logout.php:68