45 $button_action = (is_null($click)) ?
"" : $click;
47 parent::__construct(
$label, $button_action);
67 public function isOn() : bool
77 if ($this->action_off !==
null) {
89 if ($this->action_on !==
null) {
An exception for terminatinating execution or to throw for unit testing.
A component is the most general form of an entity in the UI.
checkStringOrSignalArg($which, $value)
Throw an InvalidArgumentException if $value is no string or Signal.
appendTriggeredSignal(Component\Signal $signal, $event)
Append a triggered signal to other signals of the same event.
setTriggeredSignal(Component\Signal $signal, $event)
Add a triggered signal, replacing any othe signals registered on the same event.
getTriggeredSignalsFor($event)
Get signals that are triggered for a certain event.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
checkBoolArg($which, $value)
Throw an InvalidArgumentException if $value is not a bool.
trait ComponentHelper
Provides common functionality for component implementations.