2

The date picker component does not Year Month Day label in Sencha Touch. See the screen shot for current and expected output.Current & Expected output

Is there any way to handle this.

I am using Sencha Touch 2.3.1

Darin Kolev
  • 3,401
  • 13
  • 31
  • 46
Ravi Shekhar
  • 2,633
  • 4
  • 19
  • 19

2 Answers2

1

Just set useTitles property:

useTitles: true

to your Picker.

Darin Kolev
  • 3,401
  • 13
  • 31
  • 46
0

I was using xtype: 'datepickerfield'

So adding this listener with setTitle to true solved this issue.

listeners: {
        initialize: function(){
            this.getPicker().setUseTitles(true);
    }
}

datepickerfield contains a picker component encapsulated in itself.

Ravi Shekhar
  • 2,633
  • 4
  • 19
  • 19