ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Button.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
29
34{
38 public function getLabel(): string;
39
43 public function withLabel(string $label): Button;
44
48 public function withSymbol(?Symbol $symbol): self;
49
56 public function getAction();
57
61 public function isActive(): bool;
62
69 public function withUnavailableAction(bool $flag = true): Button;
70
74 public function withAriaLabel(string $aria_label): Button;
75
79 public function getAriaLabel(): string;
80}
isActive()
Get to know if the button is activated.
getLabel()
Get the label on the button.
getAriaLabel()
Get the aria-label on the button.
withUnavailableAction(bool $flag=true)
Get a button like this, but action should be unavailable atm.
withAriaLabel(string $aria_label)
Get a button like this, but with an additional/replaced aria-label.
getAction()
Get the action of the button, i.e.
withLabel(string $label)
Get a button like this, but with an additional/replaced label.
withSymbol(?Symbol $symbol)
Get a button like this with a symbol in its 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 describes a symbol.
Definition: Symbol.php:30
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Bulky.php:21
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.