ILIAS  release_8 Revision v8.24
Button.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
22
27
32{
36 public function getLabel(): string;
37
41 public function withLabel(string $label): Button;
42
49 public function getAction();
50
54 public function isActive(): bool;
55
62 public function withUnavailableAction(): Button;
63
67 public function withAriaLabel(string $aria_label): Button;
68
72 public function getAriaLabel(): string;
73}
isActive()
Get to know if the button is activated.
getLabel()
Get the label on the button.
getAriaLabel()
Get the aria-label on the button.
withAriaLabel(string $aria_label)
Get a button like this, but with an additional/replaced aria-label.
withUnavailableAction()
Get a button like this, but action should be unavailable atm.
getAction()
Get the action of the button, i.e.
withLabel(string $label)
Get a button like this, but with an additional/replaced label.
Engageable Components have an "engaged" state and will be displayed accordingly.
Definition: Engageable.php:29
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 file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Bulky.php:21
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.