ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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
12
17{
23 public function getLabel();
24
31 public function withLabel($label);
32
39 public function getAction();
40
46 public function isActive();
47
56 public function withUnavailableAction();
57
64 public function withAriaLabel($aria_label);
65
71 public function getAriaLabel();
72
78 public function withAriaChecked();
79
85 public function isAriaChecked();
86
92 public function withOnClick(Signal $signal);
93}
An exception for terminatinating execution or to throw for unit testing.
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.
withOnClick(Signal $signal)
@inheritdocs
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, i.e.
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.