Results 1 to 2 of 2

Thread: Date panel - incomplete handler parameter doc

    You found a bug! We've classified it as EXTJS-26159 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    2,417
    Answers
    20
    Vote Rating
    678
      -2  

    Default Date panel - incomplete handler parameter doc

    There are three params, not two. The last param is the previous selected date, which is not documented.
    Code:
    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 event should be documented.

  2. #2
    Sencha User
    Join Date
    Mar 2012
    Location
    Lawrence, KS
    Posts
    461
    Answers
    65
    Vote Rating
    92
      0  

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

Similar Threads

  1. [FIXED] Actioncolumn wrong handler parameter
    By quixit in forum Sencha Architect 2.x: Bugs
    Replies: 1
    Last Post: 20 Jan 2013, 9:54 PM
  2. passing parameter to a handler
    By ByteLess in forum Ext: Q&A
    Replies: 3
    Last Post: 20 Aug 2012, 5:45 AM
  3. grid button handler with parameter
    By raj_plays in forum Ext 3.x: Help & Discussion
    Replies: 6
    Last Post: 13 Apr 2011, 2:14 AM
  4. Date field, hitting tab while incomplete creates wonky date
    By mikeasi in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 18 Feb 2011, 11:21 AM
  5. cellclick handler with additional parameter
    By Suresh Arumugam in forum Ext 3.x: Help & Discussion
    Replies: 6
    Last Post: 12 Jul 2010, 11:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •