Extending sap.uxap.ObjectPageSection: how to add a button
Dear UI5-Team,
I use a sap.uxap.ObjectPageLayout containing some ObjectPageSection which leads to corresponding buttons in the anchor bar.
To save space in phone mode, the ObjectPageLayout doesn't have a header, it just starts with the anchor bar.
Now I want to place an additional button at the right end of the anchor bar. This button should have no relation to any ObjectPageSection, it's just required to fire an event.
Is extending sap.uxap.ObjectPageSection the right approach? (I mean similar to this sap.m.Input sample: https://openui5.hana.ondemand.com/1.60.5/#/topic/bcee26a4801748f39bf5698d83d903aa)
Maybe you could give a small hint what's required to add such a button to the ObjectPageSection. Your help is much appreciated!
OpenUI5 version is 1.60.5.
I am not exactly sure if Your scenario is supported.
Could You isolate it in a separate sample in a playground (jsbin, plunker, jsfiddle, codepen)?
Regards, Plamen Ivanov
Hello @born2dev ,
Upon further inspection I can give a few hints:
- On Phone, the traditional AnchorBar is replaced by Select.
- On all platforms, the rightmost spot is reserved for arrow down
Furthermore it is not a good idea to put in the ObjectPageSection class, since it will be in any of the sections.
Why not put it in the header content?
If you need any additional help, don't hesitate to contact us :)
Regards, Plamen Ivanov
Since there is no response from the author for more than 4 weeks I'm closing the ticket.