cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 1.72 - Title Alignment on toolbar - template parameter

0 Kudos

Hello Experts !

Starting from version 1.72 titleAlignment property was introduced. According to changelog it is derived from a setting in a theme however when i log in to Designer i cannot find relevant parameter - m Belize y theme is based on SAP Belize but converted to Fiori3.

Can you please advise on how to set this param ?

I would like to achieve same alignment for each affected control by default.

Jacek

Accepted Solutions (0)

Answers (1)

Answers (1)

Margot
Product and Topic Expert
Product and Topic Expert
0 Kudos

The titleAlignement property was introduced in version 1.72 but got then revisited and refactored in version 1.84. So it depends on the version if you want to adapt it in your custom theme. But as far as I know this cannot be done via the UI theme designer but needs to be adapted in the respective file manually.

For versions from 1.72 up to 1.83 you need to set the parameter value to the theme parameter @sapMTitleAlignment defined in the global.less file.

For versions higher than 1.83 your need to set the values for titleAlignment in the sapMBarTitleAlignAuto class which can be found in the Bar.less file.

In the standard Fiori 3 theme I think by default the title is aligned to Center. Alternatively you can change this to Start.