PDA

View Full Version : Esc button in DatePickerField



PSB
15 Oct 2010, 7:58 AM
Hello. I try insert esc button in DatePickerField toolbar:



xtype:"datepickerfield",
name:"task_d_start",
label:"Start",
listeners:{
render:function(){
this.addDocked({text:"Cancel",dock:"left",function(){
//TODO
}},0);
}
},
value:(cmd=="new")?new Date():"",
datePickerConfig:{yearFrom:new Date().getFullYear(),yearTo:2020}


but in DatePickerField class not allowed addDocked :(

please help!

PSB
16 Oct 2010, 2:55 AM
up....