ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
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
5
namespace
ILIAS\UI\Component\Button
;
6
7
use
ILIAS\UI\Component\Clickable
;
8
use
ILIAS\UI\Component\Component
;
9
use
ILIAS\UI\Component\Hoverable
;
10
use
ILIAS\UI\Component\JavaScriptBindable
;
11
use
ILIAS\UI\Component\Signal
;
12
16
interface
Button
extends
Component
,
JavaScriptBindable
,
Clickable
,
Hoverable
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
}
ILIAS\UI\Component\Button\Button\withLabel
withLabel($label)
Get a button like this, but with an additional/replaced label.
ILIAS\UI\Component\Hoverable
Definition:
Hoverable.php:11
ILIAS\UI\Component\Button\Button\isAriaChecked
isAriaChecked()
Get to know if the button has the aria-checked attribute.
Clickable
JavaScriptBindable
ILIAS\UI\Component\Button\Button\isActive
isActive()
Get to know if the button is activated.
ILIAS\UI\Component\Button\Button\withUnavailableAction
withUnavailableAction()
Get a button like this, but action should be unavailable atm.
ILIAS\UI\Component
ILIAS\UI\Implementation\Component\JavaScriptBindable
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
Definition:
JavaScriptBindable.php:12
Component
ILIAS\UI\Component\Button
Definition:
Bulky.php:4
ILIAS\UI\Component\Button\Button\getAction
getAction()
Get the action of the button, i.e.
ILIAS\UI\Component\Button\Button\getLabel
getLabel()
Get the label on the button.
ILIAS\UI\Component\Button\Button\withOnClick
withOnClick(Signal $signal)
ILIAS\UI\Component\Signal
Definition:
Signal.php:13
ILIAS\UI\Component\Clickable
Definition:
Clickable.php:11
php
ILIAS\UI\Component\Button\Button\withAriaLabel
withAriaLabel($aria_label)
Get a button like this, but with an additional/replaced aria-label.
Signal
ILIAS\UI\Component\Button\Button\getAriaLabel
getAriaLabel()
Get the aria-label on the button.
Hoverable
ILIAS\UI\Component\Button\Button\withAriaChecked
withAriaChecked()
Get a button like this, but setting the aria-checked value as true.
src
UI
Component
Button
Button.php
Generated on Thu Jan 30 2025 19:02:11 for ILIAS by
1.8.13 (using
Doxyfile
)