ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
Button.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
28 
33 {
37  public function getLabel(): string;
38 
42  public function withLabel(string $label): Button;
43 
50  public function getAction();
51 
55  public function isActive(): bool;
56 
63  public function withUnavailableAction(bool $flag = true): Button;
64 
68  public function withAriaLabel(string $aria_label): Button;
69 
73  public function getAriaLabel(): string;
74 }
isActive()
Get to know if the button is activated.
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...
Definition: Bulky.php:21
getAction()
Get the action of the button, i.e.
getLabel()
Get the label on the button.
withAriaLabel(string $aria_label)
Get a button like this, but with an additional/replaced aria-label.
withLabel(string $label)
Get a button like this, but with an additional/replaced label.
withUnavailableAction(bool $flag=true)
Get a button like this, but action should be unavailable atm.
getAriaLabel()
Get the aria-label on the button.