ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 
8 
18  public function getLabel();
19 
26  public function withLabel($label);
27 
33  public function getAction();
34 
40  public function isActive();
41 
50  public function withUnavailableAction();
51 }
withLabel($label)
Get a button like this, but with an additional/replaced label.
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.
A component is the most general form of an entity in the UI.
Definition: Component.php:13
getAction()
Get the action of the button.
getLabel()
Get the label on the button.
This describes commonalities between standard and primary buttons.
Definition: Button.php:12