N°5920 - Add linkset's description as corresponding tab's tooltip in object details

This commit is contained in:
Molkobain
2023-01-25 19:24:50 +01:00
parent 2a825c6ba0
commit e72ed33a40
12 changed files with 108 additions and 29 deletions

View File

@@ -77,10 +77,13 @@ class AjaxTab extends Tab
* @param string $sTabCode
* @param string $sTitle
* @param string $sPlaceholderRelPath
* @param string|null $sDescription {@see \Combodo\iTop\Application\UI\Base\Layout\TabContainer\Tab\Tab::$sDescription}
*
* @since 3.1.0 N°5920 Add $sDescription argument
*/
public function __construct(string $sTabCode, string $sTitle, string $sPlaceholderRelPath = AjaxTab::DEFAULT_TAB_PLACEHOLDER)
public function __construct(string $sTabCode, string $sTitle, string $sPlaceholderRelPath = AjaxTab::DEFAULT_TAB_PLACEHOLDER, ?string $sDescription = null)
{
parent::__construct($sTabCode, $sTitle);
parent::__construct($sTabCode, $sTitle, $sDescription);
$this->sPlaceholderRelPath = $sPlaceholderRelPath;
}