fix for 6179 (with description instead of tooltip)

PR fix
This commit is contained in:
jf-cbd
2023-04-12 14:25:06 +02:00
parent ddc9952ec1
commit 7cb6af0a2b

View File

@@ -86,6 +86,14 @@ class FieldUIBlockFactory extends AbstractUIBlockFactory
return $oField;
}
/**
* @api
* @param string $sLabel
* @param string $sValueHtml
* @param string $sTooltip
*
* @return \Combodo\iTop\Application\UI\Base\Component\Field\Field
*/
public static function MakeLarge(string $sLabel, string $sValueHtml = '', string $sTooltip = '')
{
$oField = new Field($sLabel, new Html($sValueHtml));
@@ -94,6 +102,14 @@ class FieldUIBlockFactory extends AbstractUIBlockFactory
return $oField;
}
/**
* @api
* @param string $sLabel
* @param string $sValueHtml
* @param string $sTooltip
*
* @return \Combodo\iTop\Application\UI\Base\Component\Field\Field
*/
public static function MakeSmall(string $sLabel, string $sValueHtml = '', string $sTooltip = '')
{
$oField = new Field($sLabel, new Html($sValueHtml));
@@ -102,6 +118,15 @@ class FieldUIBlockFactory extends AbstractUIBlockFactory
return $oField;
}
/**
* @api
* @param string $sLabel
* @param string $sLayout
* @param string|null $sId
* @param string $sTooltip
*
* @return \Combodo\iTop\Application\UI\Base\Component\Field\Field
*/
public static function MakeStandard(string $sLabel = '', string $sLayout = Field::ENUM_FIELD_LAYOUT_SMALL, ?string $sId = null, string $sTooltip = '')
{
$oField = new Field($sLabel, null, $sId);