ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
Button.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\Component\Button
;
22
23
use
ILIAS\UI\Component\Clickable
;
24
use
ILIAS\UI\Component\Component
;
25
use
ILIAS\UI\Component\Hoverable
;
26
use
ILIAS\UI\Component\JavaScriptBindable
;
27
use
ILIAS\UI\Component\HasHelpTopics
;
28
use
ILIAS\UI\Component\Symbol\Symbol
;
29
33
interface
Button
extends
Component
,
JavaScriptBindable
,
Clickable
,
Hoverable
,
Engageable
,
HasHelpTopics
34
{
38
public
function
getLabel
(): string;
39
43
public
function
withLabel
(
string
$label):
Button
;
44
48
public
function
withSymbol
(?
Symbol
$symbol):
self
;
49
56
public
function
getAction
();
57
61
public
function
isActive
(): bool;
62
69
public
function
withUnavailableAction
(
bool
$flag =
true
):
Button
;
70
74
public
function
withAriaLabel
(
string
$aria_label):
Button
;
75
79
public
function
getAriaLabel
(): string;
80
}
ILIAS\UI\Component\Hoverable
Definition:
Hoverable.php:30
Clickable
JavaScriptBindable
ILIAS\UI\Component\Button\Button\isActive
isActive()
Get to know if the button is activated.
ILIAS\UI\Component\Symbol\Symbol
This describes a symbol.
Definition:
Symbol.php:29
Standard
ILIAS\UI\Implementation\Component\HasHelpTopics
trait HasHelpTopics
Definition:
HasHelpTopics.php:26
ILIAS\UI\Component
ILIAS\UI\Implementation\Component\JavaScriptBindable
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
Definition:
JavaScriptBindable.php:32
Component
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Engageable
ILIAS\UI\Component\Button
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
Bulky.php:21
Symbol
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\withSymbol
withSymbol(?Symbol $symbol)
Get a button like this with a symbol in its label.
ILIAS\UI\Component\Button\Button\withAriaLabel
withAriaLabel(string $aria_label)
Get a button like this, but with an additional/replaced aria-label.
ILIAS\UI\Component\Button\Button\withLabel
withLabel(string $label)
Get a button like this, but with an additional/replaced label.
ILIAS\UI\Component\Clickable
Definition:
Clickable.php:30
ILIAS\UI\Component\Button\Button\withUnavailableAction
withUnavailableAction(bool $flag=true)
Get a button like this, but action should be unavailable atm.
ILIAS\UI\Component\Button\Button\getAriaLabel
getAriaLabel()
Get the aria-label on the button.
Hoverable
HasHelpTopics
components
ILIAS
UI
src
Component
Button
Button.php
Generated on Sun Aug 31 2025 23:04:07 for ILIAS by
1.8.13 (using
Doxyfile
)