mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°4021 - Introduce sticky header for panels and object details (tab container to be done)
This commit is contained in:
@@ -20,6 +20,10 @@ class ObjectDetails extends Panel implements iKeyboardShortcut
|
||||
public const BLOCK_CODE = 'ibo-object-details';
|
||||
public const DEFAULT_HTML_TEMPLATE_REL_PATH = 'base/layouts/object/object-details/layout';
|
||||
public const DEFAULT_JS_TEMPLATE_REL_PATH = 'base/layouts/object/object-details/layout';
|
||||
public const DEFAULT_JS_FILES_REL_PATH = [
|
||||
'js/components/panel.js',
|
||||
'js/layouts/object/object-details.js',
|
||||
];
|
||||
|
||||
/** @var string Class name of the object (eg. "UserRequest") */
|
||||
protected $sClassName;
|
||||
|
||||
@@ -31,6 +31,9 @@ class ObjectFactory
|
||||
*/
|
||||
public static function MakeDetails(DBObject $oObject, ?string $sMode = cmdbAbstractObject::DEFAULT_OBJECT_MODE)
|
||||
{
|
||||
return new ObjectDetails($oObject, $sMode);
|
||||
$oObjectDetails = new ObjectDetails($oObject, $sMode);
|
||||
$oObjectDetails->SetIsHeaderVisibleOnScroll(true);
|
||||
|
||||
return $oObjectDetails;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user