Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Align in headerContent

Hello Guys!

Im devloping a SAPUI5 app and Im struggling at a small issue:

In the header of one of my views I want a logo left-aligned. The standard align is right Tried things like <contentLeft> but it didnt worked out..

This is my source code for this part:

[...]

  <Page

  title="{i18n>MasterTitle}" >

  <headerContent>

  <Image

           src="attach/logo.jpg"

           height="40px"

           decorative="true">

         </Image>

  </headerContent>

[...]

Thx in Advance!

With best regards,

Chung

Tags:
Former Member
Former Member replied

Hello Chung,

You can right align logo by using custom header and add image under contentRight aggregation of sap.m.Bar

e.g.

<Page id="page">

      <customHeader>

           <Bar>

                <contentRight>

                     <Image src="img/images.jpg" height="40px"></Image>

                </contentRight>

           </Bar>

      </customHeader>

     <content>

          ....

     </content>

</Page>

Regards,

Parag

2 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question