N°8641 - Dashboard editor front-end first commit for Form SDK integration.

* No dashlet edition
* Dashboard are not persisted
* Unable to load a dashboard from an endpoint (refresh)
* Grid library need proper npm integration
This commit is contained in:
Stephen Abello
2026-01-06 15:23:51 +01:00
parent 3e879c64a7
commit a713e1b56e
167 changed files with 32266 additions and 763 deletions

View File

@@ -0,0 +1,51 @@
<?php
namespace Combodo\iTop\Application\UI\Base\Component\Dashlet;
use Combodo\iTop\Application\UI\Base\UIBlock;
class DashletWrapper extends UIBlock {
public const BLOCK_CODE = 'ibo-dashlet-wrapper';
public const DEFAULT_HTML_TEMPLATE_REL_PATH = 'base/components/dashlet/dashlet-wrapper';
protected $oDashlet;
protected $sDashletClass;
protected $sDashletId;
public function __construct($oDashlet, ?string $sDashletId = null, ?string $sDashletClass = null) {
parent::__construct(null);
$this->oDashlet = $oDashlet;
$this->sDashletId = $sDashletId;
$this->sDashletClass = $sDashletClass;
}
public function GetDashlet() {
return $this->oDashlet;
}
public function GetDashletId(): ?string
{
return $this->sDashletId;
}
public function SetDashletId(?string $sDashletId): DashletWrapper
{
$this->sDashletId = $sDashletId;
return $this;
}
public function GetDashletClass(): ?string
{
return $this->sDashletClass;
}
public function SetDashletClass(?string $sDashletClass)
{
$this->sDashletClass = $sDashletClass;
return $this;
}
}