20abstract class Slate implements ISlate\Slate
85 $this->signal_generator = $signal_generator;
97 $this->toggle_signal = $this->signal_generator->create();
98 $this->engage_signal = $this->signal_generator->create();
99 $this->replace_signal = $this->signal_generator->create(ReplaceSignalImplementation::class);
139 $clone = clone $this;
140 $clone->engaged = $state;
186 $clone = clone $this;
187 $clone->mainbar_tree_position = $tree_pos;
201 $pos = explode(
':', $this->mainbar_tree_position);
202 return count($pos) - 1;
216 self::$allowed_aria_roles,
217 implode(
'/', self::$allowed_aria_roles)
219 $clone = clone $this;
An exception for terminatinating execution or to throw for unit testing.
withMappedSubNodes(callable $f)
appendOnFirstView(Signal $signal)
appendOnInView(Signal $signal)
__construct(SignalGeneratorInterface $signal_generator, string $name, Symbol $symbol)
getAriaRole()
Get the ARIA role on the slate.
initSignals()
Set the signals for this component.
static $allowed_aria_roles
withMainBarTreePosition(string $tree_pos)
withAriaRole(string $aria_role)
Get a slate like this, but with an additional ARIA role.
A component is the most general form of an entity in the UI.
This signal replaces a component by ajax.
appendTriggeredSignal(Component\Signal $signal, $event)
Append a triggered signal to other signals of the same event.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
trait ComponentHelper
Provides common functionality for component implementations.
checkArgIsElement($which, $value, $array, $name)
Throw an InvalidArgumentException if $value is not an element of array.
Class ChatMainBarProvider \MainMenu\Provider.