5 Roo.form.DateDisplay = function(config){
8 Roo.form.DateDisplay.superclass.constructor.call(this, config);
9 this.picker = new Roo.DatePicker({
16 Roo.extend(Roo.form.DateDisplay , Roo.form.DateField , {
20 onRender : function(ct, position)
22 Roo.form.TextField.superclass.onRender.call(this, ct, position);
25 this.el.dom.value = this.value ? this.formatDate(this.value, 'Y-m-d') : '';
26 // prevent input submission
28 // now render the field..
29 this.wrap = this.el.wrap();
31 this.viewEl = this.wrap.createChild({ tag: 'div', cls: 'x-form-displayfield'});
33 this.picker.onRender(this.viewEl, position);