ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Dropdown.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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 }
withLabel(string $label)
Get a Dropdown like this, but with an additional/replaced label.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This describes commonalities between all types of Dropdowns.
Definition: Dropdown.php:34
getAriaLabel()
Get the aria-label 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.
getItems()
Get the items of the Dropdown.