PDA

View Full Version : Datefield without DatePicker?



jtb4x
15 Mar 2012, 1:01 PM
I'd like to have a datefield without a corresponding datepicker. The reason is that we want the validation controls that go along with the datefield, but there's not enough screen real estate for the full picker, so we'll only allow date entry via the input field.

Ideally, it'd just be a config item (e.g. includePicker) for datefield, but without that, I'm trying to figure out if there's an override I can do to make this behavior happen (on a datefield by datefield basis). I looked through the source, but not sure what change I could make to do it.

Any help is much appreciated.

fschaeffer
15 Mar 2012, 10:16 PM
hideTrigger (http://docs.sencha.com/ext-js/4-0/#!/api/Ext.form.field.Trigger-cfg-hideTrigger) : Boolean (http://docs.sencha.com/ext-js/4-0/#!/api/Boolean)
true to hide the trigger element and display only the base text field

This will hide the date pickers trigger field, not sure whether this will also prevent the datefield from showing the calendar itself but you could give it a try.

HTH
Florian

jtb4x
16 Mar 2012, 5:50 AM
This works perfectly...thanks Florian!