5 Roo.form.DateDisplay = function(config){
8 Roo.form.DateDisplay.superclass.constructor.call(this, config);
9 this.picker = new Roo.DatePicker( config );
10 this.picker.on('select', this.onSelect, this);
14 Roo.extend(Roo.form.DateDisplay , Roo.form.DateField , {
18 onRender : function(ct, position)
20 Roo.form.TextField.superclass.onRender.call(this, ct, position);
23 this.el.dom.value = this.value ? this.formatDate(this.value, 'Y-m-d') : '';
24 // prevent input submission
26 // now render the field..
27 this.wrap = this.el.wrap();
29 this.viewEl = this.wrap.createChild({ tag: 'div', cls: 'x-form-displayfield'});
31 this.picker.onRender(this.viewEl, position);
34 onSelect : function(sel) {