Make dashlet that needs to execute JS be able to do so in the first paint and when refreshed

This commit is contained in:
Stephen Abello
2026-01-19 17:00:31 +01:00
parent 6aa8ac7ff1
commit cb61ae8d61
4 changed files with 32 additions and 5 deletions

View File

@@ -61,4 +61,9 @@ class DashboardGrid extends UIBlock
return $this;
}
public function GetSubBlocks(): array
{
return $this->aSlots;
}
}

View File

@@ -36,10 +36,6 @@ class DashboardGridSlot extends UIBlock
$this->iHeight = $iHeight;
}
public function GetSubBlocks(): array
{
return [$this->oUIBlock];
}
public function HasPositionX(): bool
{
@@ -116,4 +112,9 @@ class DashboardGridSlot extends UIBlock
return $this;
}
public function GetSubBlocks(): array
{
return [$this->oDashlet];
}
}