ILIAS  release_8 Revision v8.24
Slate.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
22
28
33{
37 public function getName(): string;
38
42 public function getSymbol(): Symbol;
43
47 public function getToggleSignal(): Signal;
48
52 public function getEngageSignal(): Signal;
53
57 public function withEngaged(bool $state): Slate;
58
62 public function getEngaged(): bool;
63
67 public function getContents(): array;
68
72 public function getReplaceSignal(): ?Signal;
73
77 public function appendOnInView(Signal $signal): Slate;
78
83 public function withMainBarTreePosition(string $tree_pos): Slate;
84
85 public function getMainBarTreePosition(): ?string;
86}
A component is the most general form of an entity in the UI.
Definition: Component.php:28
Interface to be extended by components that have the possibility to bind to Javascript.
getSymbol()
Get the Symbol of the slate.
getToggleSignal()
Signal that toggles the slate when triggered.
appendOnInView(Signal $signal)
A Signal that is triggered when the slate "comes into view", i.e.
withEngaged(bool $state)
Configures the slate to be rendered as engaged (or not).
getEngageSignal()
Signal that engages the slate when triggered.
withMainBarTreePosition(string $tree_pos)
Slates in the main bar need to be addressable via JS, a.o.
getEngaged()
Should the slate be rendered as engaged?
getReplaceSignal()
Signal to replace the contents of the slate.
getName()
Get the name of this slate.
This describes a symbol.
Definition: Symbol.php:30
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Combined.php:20
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.