Allow dashboard to refresh from backend, or refresh with new data format when switching from custom to default

This commit is contained in:
Stephen Abello
2026-02-03 09:15:41 +01:00
parent 2ff183a78a
commit 73e6a0af8a
6 changed files with 190 additions and 53 deletions

View File

@@ -43,6 +43,10 @@ class DashboardLayout extends UIBlock
protected $oRefreshInput;
protected $oButtonsToolbar;
protected $sFile;
protected $bIsCustom = false;
public function __construct(?string $sId = null)
{
parent::__construct($sId);
@@ -53,6 +57,7 @@ class DashboardLayout extends UIBlock
$this->oTitleInput = $this->MakeTitleInput();
$this->oRefreshInput = $this->MakeRefreshInput();
$this->oButtonsToolbar = $this->MakeButtonsToolbar();
$this->sFile = '';
}
public function MakeTitleInput()
@@ -192,4 +197,28 @@ class DashboardLayout extends UIBlock
{
return $this->oButtonsToolbar;
}
public function SetFile(string $sFile)
{
$this->sFile = $sFile;
return $this;
}
public function GetFile()
{
return $this->sFile;
}
public function IsCustom(): bool
{
return $this->bIsCustom;
}
public function SetIsCustom(bool $bIsCustom)
{
$this->bIsCustom = $bIsCustom;
return $this;
}
}