cancel
Showing results for 
Search instead for 
Did you mean: 

how change the color of the Title,subHeader and contentMiddle in dialogbox using sapui5

Ranjith
Participant
0 Kudos

I want to change the Font size of the title and the backgoround color of the contentmiddle and subheader in the dialogbox using the sapui5. How to change?

new sap.m.Dialog({

title : "Conformation required",

content : new sap.m.Text( { text : "XYZ" }),

subHeader : new sap.m.Bar({

contentMiddle : [new sap.m.Text({

text : "Do you really want to add List?"

})]

})}

);

Accepted Solutions (1)

Accepted Solutions (1)

brian_keenan
Contributor
0 Kudos

To change the style of any ui5 object, you can add you own class,

new sap.m.Text({

text : "Do you really want to add List?"

}).addStyleClass("newcolor")

then in the css, you can add

.newcolor {

background-color: red;

}

Ranjith
Participant
0 Kudos

No.i want to change the style of the content,and SubHeader. How to change

brian_keenan
Contributor
0 Kudos

But content and SubHeader are aggregations contained within the Control, you will need to change the CSS of the controls assigned to the aggregations

Answers (0)