19declare(strict_types=1);
43 protected \ILIAS\DI\UIServices
$ui;
45 protected string $cmd =
"";
56 $this->
ui = $DIC->ui();
57 $this->
toolbar = $DIC->toolbar();
71 $this->is_primary =
true;
90 if ($this->is_primary) {
91 $b = $this->
ui->factory()->button()->primary(
96 $b = $this->
ui->factory()->button()->standard(
101 $b =
$b->withOnLoadCode(
function (
$id) use (
$cmd) {
104 const el = document.getElementById(
'$id');
105 el.name =
"cmd[$cmd]";
116 return $this->
ui->factory()->button()->standard(
124 return $this->
ui->factory()->button()->primary(
132 switch ($this->type) {
145 if ($this->on_click !==
"") {
150 const el = document.getElementById(
'$id').addEventListener(
'click', () => { $click });
179 return $this->
ui->renderer()->render($this->
getButton());
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
withOnLoadCode(Closure $binder)
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.