How to make DateTime number field editable in ExtJS?

Total Post:23

Points:161
 1235  View(s)
Ratings:
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?
  1. Post:214

    Points:1642
    Re: How to make DateTime number field editable in ExtJS?

    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.

  1. Post:2

    Points:14
    Re: How to make DateTime number field editable in ExtJS?

    Thanks!

    It's help me too))

Answer