on 07-11-2018 6:30 AM
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?"
})]
})}
);
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;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
9 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.