Priya
Priya

Reputation: 1226

Prevent manual entry in Custom Date Picker

I have created a custom Date picker in ExtJs with only month and year field by referring to https://fiddle.sencha.com/#fiddle/h5i&view/editor, but I am unable to disable the manual entry into the field. I want the input for that field to be given only by choosing in DatePicker. is there any attribute for doing so

Upvotes: 0

Views: 358

Answers (1)

Tejas
Tejas

Reputation: 902

You need to add editable:false for avoiding manual entry.

Ext.create('Ext.form.field.Month', {
        format: 'F, Y',
        fieldLabel: 'Date',
        renderTo: Ext.getBody(),
        editable:false
    });

Is this what you were asking ?

Upvotes: 3

Related Questions