ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
Toast.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
21 namespace ILIAS\UI\Component\Toast;
22 
30 
36 {
40  public function getTitle();
41 
42  public function withDescription(string $description): Toast;
43 
44  public function getDescription(): string;
45 
46  public function withAdditionalLink(Link $link): Toast;
47 
48  public function withoutLinks(): Toast;
49 
53  public function getLinks(): array;
54 
58  public function withAction(string $action): Toast;
59 
60  public function getAction(): string;
61 
62  public function getIcon(): Icon;
63 
67  public function initSignals(): void;
68 
72  public function getShowSignal(): Signal;
73 }
getShowSignal()
Get the signal to show this toast in the frontend.
This describes how an icon could be modified during construction of UI.
Definition: Icon.php:28
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Container.php:21
initSignals()
Init the default signals.
withAction(string $action)
Create a copy of this toast with an url, which is called asynchronous when the user interact with the...
withDescription(string $description)