cancel
Showing results for 
Search instead for 
Did you mean: 

Align in headerContent

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

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

Answers (1)

Answers (1)

SandipAgarwalla
Active Contributor
0 Kudos

did you try with custom header

<customHeader>

<toolBar>

<image>

<toolBar>

<customHeader>

syntax is not correct, i just gave the element names.