Home > DeveloperSection > Forums > How to make DateTime number field editable in ExtJS?
zack mathews
zack mathews

Total Post:21

Points:147
Posted on    May-10-2016 8:15 AM

 sencha extjs JavaScript  Sencha 
Ratings:


 2 Reply(s)
 314  View(s)
Rate this:
I am new in Extjs, I am extending existing ExtJS6 DatePicker for date time picker and in the DatePicker using numberfield. My problem is the number field is not editable and also the  spinner in numberfield once click the date picker is gone.

Please anyone tell me why the number field is not editable and what will be the wrong in it?


Tarun Kumar

Total Post:210

Points:1614
Posted on    May-10-2016 8:43 AM

Yes, the problem you are facing is common in newbies. So you can use ownerCt and ownerLayout properties on your buttons in the beforeRender method. See the example:
demo.minuteBtn = new _$Number({
    ownerCt: demo,
    ownerLayout: demo.getComponentLayout(),
    minValue: 0,
    maxValue: 20,
    step: 1,
    width: 50
});
I hope your problem is now resolved.

Archie Pearce
Archie Pearce

Total Post:2

Points:14
Posted on    August-08-2016 4:23 AM

Thanks!
It's help me too))

Don't want to miss updates? Please click the below button!

Follow MindStick