chnselim chnselim - 4 months ago 14
Javascript Question

ExtJS change label value

I'm trying to show the current date and time using this:

var currentDate = new Date();


and then the code below to update my label, which did not work:

var controller = this;
var refs = controller.getReferences();

refs.dateLabelId.text.setValue = currentDate;


dateLabelId is the reference of my label




PROBLEM SOLVED

refs.dateLabelId.label.setText(currentDate)

Answer

problem is solved with:

refs.dateLabelId.label.setText(currentDate)
Comments