ILIAS  release_7 Revision v7.30-3-g800a261c036
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 withOnClick(Signal $signal);
79}
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.
withOnClick(Signal $signal)
@inheritdocs
withUnavailableAction()
Get a button like this, but action should be unavailable atm.
getAction()
Get the action of the button, i.e.
Engageable Components have an "engaged" state and will be displayed accordingly.
Definition: Engageable.php:13
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.