mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user