PDA

View Full Version : [OPEN] Date panel - incomplete handler parameter doc



LesJ
15 Aug 2017, 5:55 AM
There are three params, not two. The last param is the previous selected date, which is not documented.

Ext.define('Ext.panel.Date', {
...
/**
* @cfg {Function} [handler]
* A function that will handle the change in value.
* The function will receive the following parameters:
*
* @param {Ext.panel.Date} handler.this this
* @param {Date} handler.date The selected date
*/
handler: null,
...
updateValue: function(value, oldValue) {
...
if (handler) {
Ext.callback(handler, me.scope, [me, value, oldValue]);
}
...
},
...



Also, the value change (https://www.sencha.com/forum/showthread.php?368428-Modern-data-panel-value-change-event-is-not-documented) event should be documented.

greg.barry
15 Aug 2017, 9:30 AM
Thanks for the report! I have opened a bug in our bug tracker.