mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-29 05:28:44 +02:00
N°2847 - Dashlet header static and text
This commit is contained in:
@@ -15,4 +15,14 @@ class DashletFactory
|
||||
return new DashletBadge($sClassIconUrl, $sHyperlink, $iCount, $sClassLabel, $sCreateActionUrl, $sCreateActionLabel);
|
||||
}
|
||||
|
||||
public static function MakeForDashletHeaderStatic(string $sTitle, string $sIconUrl)
|
||||
{
|
||||
return new DashletHeaderStatic(null, $sTitle, $sIconUrl);
|
||||
}
|
||||
|
||||
public static function MakeForDashletText(string $sId, string $sText)
|
||||
{
|
||||
return new DashletHeaderStatic($sId, '', '', $sText);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user