ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Mode.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
28interface Mode extends Component
29{
35 public function withActive(string $label): Mode;
36
42 public function getActive(): ?string;
43
49 public function getLabelledActions(): array;
50
54 public function getAriaLabel(): string;
55}
A component is the most general form of an entity in the UI.
Definition: Component.php:28
This describes a Mode Control.
Definition: Mode.php:29
getActive()
get the label of the currently active/engaged button of the mode control
getLabelledActions()
Get the array containing the actions and labels of the mode control.
withActive(string $label)
set the currently active/engaged Button by label.
getAriaLabel()
Get the aria-label on the ViewControl.