2015 Jul 16 7:03 AM
Hello All,
I am working on an application.I have developed frontend using Xml now i want to change the label color on click of button can any1 please help me with this.
i tried the code
onclick : fuction()
{
var l = this.getView().byId("lbl");
document.getElementById("l").setColor = 'Blue';
}
but its not working please help me with this.
Thanks in advance
2015 Jul 20 12:50 PM
Are you working with SAPUI5??
This is not the right approach.
var l = this.getView().byId("lbl");
l.addStyleClass("LabelStyle");
Here define your custom CSS.
And this is not the right space to ask such questions.