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}
An exception for terminatinating execution or to throw for unit testing.
This describes commonalities between standard and primary buttons.
Definition: Button.php:16
isActive()
Get to know if the button is activated.
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.
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.
withUnavailableAction()
Get a button like this, but action should be unavailable atm.
withAriaChecked()
Get a button like this, but setting the aria-checked value as true.
getAction()
Get the action of the button.
A component is the most general form of an entity in the UI.
Definition: Component.php:14
Interface to be extended by components that have the possibility to bind to Javascript.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.