cancel
Showing results for 
Search instead for 
Did you mean: 

change the font size of Panel Title in SAP UI 5

Former Member
0 Kudos

Hello All,

How could i change the font size of Panel Control ---Title Element

I have tried using stylesheet also but it doesnot change the font size of Panel --Heading or title

also button could be introduced in Panel Heading , how could I use TextView in Panel heading

"

The buttons that shall be displayed in the Panel header"

similarly i want to use TextView in Panel Header

any help is appreciable

Best Regards,

Namita

Accepted Solutions (0)

Answers (1)

Answers (1)

rutika_bodas
Participant
0 Kudos

Hello Namita,

If the panel header font size could not be changed with CSS also, then i suggest that you create a 'Panel control look alike' build up, by making use of a simple Text View, a horizontal divider, and then add your items to it, which will make it look like the Panel control.. We did the same in one of our webpages. Also, the default color of horizontal divider can be changed to blue by CSS.

On a sidenote, please post your UI5 related queries to the UI5 space of SCN, you will get faster replies from people closer to UI5 development.

http://scn.sap.com/community/developer-center/front-end

Regards,

Rutika Bodas

Former Member
0 Kudos

Thanks Rutika

Sure i will post my queries on UI5 space next time

If you create Panel like this are you able to collapse or expand it ?

Best Regards,

Namita

rutika_bodas
Participant
0 Kudos

Namita,

Expand and collapse is nothing but showing & hiding of the controls under the panel header.

You can sure do so by basic javascripting or by calling setVisible(true) or false on the controls underneath to achieve the same.

Regards,

Rutika Bodas