How to collapse header in SAPUI5 Object Page by default - Stack Overflow

how can I display the header in my Object Page collapsed by defaut?This is how it currently looks:Now

how can I display the header in my Object Page collapsed by defaut?

This is how it currently looks:Now And this is how I want it to be: Expected

So far, I only found the option to hide th header content completely. But then I lose the ability to expand it. Is there a way to have the heder collapsed by default while still being able to expand it when needed?

Thanks!

how can I display the header in my Object Page collapsed by defaut?

This is how it currently looks:Now And this is how I want it to be: Expected

So far, I only found the option to hide th header content completely. But then I lose the ability to expand it. Is there a way to have the heder collapsed by default while still being able to expand it when needed?

Thanks!

Share Improve this question asked Mar 13 at 11:35 SebSeb 31 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 0

There is no public API to do this. But what you could do is add the following code in the onAfterRendering or onBeforeRendering of your controller:

this.byId("myObjectPageLayout")._handleDynamicTitlePress();

Keep in mind that this method is private and your code can break at any moment.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744703321a4588904.html

相关推荐

  • How to collapse header in SAPUI5 Object Page by default - Stack Overflow

    how can I display the header in my Object Page collapsed by defaut?This is how it currently looks:Now

    12天前
    50

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信