on 05-27-2016 9:10 PM
Hi Experts,
I tried to apply CSS to the SAP UI5 button control as below.
In the CSS file:
.myButton
{
color: red !important;
font-size: 14px;
background-color: Grey;
}
in the Java script:
Button4_c2c5.addStyleClass("myButton");
But the CSS didn't applied.
Can any one tell how to apply CSS to SAPUI5 controls?
Regards,
Naga.
Discussion successfully moved from SAP Manufacturing Integration and Intelligence (SAP MII) to SAPUI5 Developer Center
as the more appropriate community for this topic (as Christian noted).
Cheers, Mike (Moderator)
SAP Technology RIG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Naga,
You are applying it on Button (Parent) element where you can mainly adjust button width and height but not color / bg-color etc., instead you have to apply it on button inner element.
Will this sample help? JS Bin - Collaborative JavaScript Debugging
Regards,
Sai Vellanki.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.