ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ 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
15
interface
Button
extends
Component
,
JavaScriptBindable
,
Clickable
,
Hoverable
16
{
22
public
function
getLabel
();
23
30
public
function
withLabel
($label);
31
37
public
function
getAction
();
38
44
public
function
isActive
();
45
54
public
function
withUnavailableAction
();
55
62
public
function
withAriaLabel
($aria_label);
63
69
public
function
getAriaLabel
();
70
76
public
function
withAriaChecked
();
77
83
public
function
isAriaChecked
();
84
}
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:
Button.php:5
ILIAS\UI\Component\Button\Button\getAction
getAction()
Get the action of the button.
ILIAS\UI\Component\Button\Button\getLabel
getLabel()
Get the label on the button.
ILIAS\UI\Component\Clickable
Definition:
Clickable.php:11
ILIAS\UI\Component\Button\Button\withAriaLabel
withAriaLabel($aria_label)
Get a button like this, but with an additional/replaced aria-label.
ILIAS\UI\Component\Button\Button\getAriaLabel
getAriaLabel()
Get the aria-label on the button.
Hoverable
ILIAS\UI\Component\Button\Button
This describes commonalities between standard and primary buttons.
Definition:
Button.php:15
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 Sat Jan 18 2025 19:01:43 for ILIAS by
1.8.13 (using
Doxyfile
)