ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Dropdown.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
30
35{
40 public function getItems(): array;
41
45 public function getLabel(): ?string;
46
50 public function getAriaLabel(): ?string;
51
55 public function withLabel(string $label): Dropdown;
56
60 public function withAriaLabel(string $label): Dropdown;
61}
A component is the most general form of an entity in the UI.
Definition: Component.php:28
This describes commonalities between all types of Dropdowns.
Definition: Dropdown.php:35
withLabel(string $label)
Get a Dropdown like this, but with an additional/replaced label.
getAriaLabel()
Get the aria-label of the Dropdown.
getItems()
Get the items of the Dropdown.
getLabel()
Get the label of the Dropdown.
withAriaLabel(string $label)
Get a Dropdown like this, but with an additional/replaced aria-label.
Interface to be extended by components that have the possibility to bind to Javascript.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.