ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Button.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 2015 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4 
6 
11 
16 {
22  public function getLabel();
23 
30  public function withLabel($label);
31 
37  public function getAction();
38 
44  public function isActive();
45 
54  public function withUnavailableAction();
55 
62  public function withAriaLabel($aria_label);
63 
69  public function getAriaLabel();
70 
76  public function withAriaChecked();
77 
83  public function isAriaChecked();
84 }
withLabel($label)
Get a button like this, but with an additional/replaced label.
isAriaChecked()
Get to know if the button has the aria-checked attribute.
isActive()
Get to know if the button is activated.
withUnavailableAction()
Get a button like this, but action should be unavailable atm.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
getAction()
Get the action of the button.
getLabel()
Get the label on the button.
withAriaLabel($aria_label)
Get a button like this, but with an additional/replaced aria-label.
getAriaLabel()
Get the aria-label on the button.
This describes commonalities between standard and primary buttons.
Definition: Button.php:15
withAriaChecked()
Get a button like this, but setting the aria-checked value as true.