webfriend13
5 Nov 2012, 2:21 AM
Hi All,
I used following code to add a datefield. Datefield comes with a text box and a calender icon by default.
Below Code is adding 'click' event on top of calender icon (shown in the red cricle) but not over the text box (shown in yellow background).
39807
Ext.define('MyDate', {
extend: 'Ext.form.field.Date',
onTriggerClick: function(){
Ext.create('Ext.window.Window', {
title: 'I am a window',
width: 200,
height: 200,
autoShow: true
});
}
});
Ext.onReady(function(){
new MyDate({
renderTo: document.body
});
});
I used following code to add a datefield. Datefield comes with a text box and a calender icon by default.
Below Code is adding 'click' event on top of calender icon (shown in the red cricle) but not over the text box (shown in yellow background).
39807
Ext.define('MyDate', {
extend: 'Ext.form.field.Date',
onTriggerClick: function(){
Ext.create('Ext.window.Window', {
title: 'I am a window',
width: 200,
height: 200,
autoShow: true
});
}
});
Ext.onReady(function(){
new MyDate({
renderTo: document.body
});
});