Page 3 of 45 FirstFirst 1234513 ... LastLast
Results 21 to 30 of 446

Thread: Documentation Bugs - Ext 3.x

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #21
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892

    Default

    [RESOLVED]

    Quote Originally Posted by anubis4u View Post
    this bug also occures in all grid.column files, aswell as the documentation of Date.

    Also there is some inconsistency in documenting datatypes. Most of the time the method inputs are documented like this:

    Datatype param, Datatype param2

    in some files (e.g. Observable-suspendEvents) its documented like this:

    param {Datatype}, param2 {Datatype}.

    Sometimes optional arguments are documented like this (E.g. Ext.tree.TreeNodeUI):
    Datatype (optional) instead of [Datatype param].

    Ext.clean, Ext.min and Ext.max have no parameter name at all, only the datatype.

    I found all this problems also in the newest documentation of RC 1.1
    Fixed in SVN.

  2. #22
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892

    Default

    [RESOLVED]

    Quote Originally Posted by MD View Post
    API Docs for GridPanel > enableDragDrop denote this config option as being true by default, when in fact it's false by default.

    MD
    Fixed in SVN.

  3. #23
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892

    Default

    [RESOLVED]

    Quote Originally Posted by griffiti93 View Post
    Recently I was using Ext for an AJAX request that was taking 40 seconds (on avg) to complete. I was querying an external resource with unknown latency. I wanted to increase the timeout of the AJAX request. I tried to set the Ext.Ajax.timeout property. It seemed to work the first time only. Unfortunately, I was having to reset it after the call. I didn't want all my AJAX requests honoring the extending timeout.

    So I jumped into the Ext source code to see what I could learn. In Ext.data.Connection the request() method looks for a timeout in the options object parameter. This timeout value is passed to a callback literal which ultimately gets handed off to the Ext.lib.Ajax request() method. However, I cannot find this property mentioned in the 2.2.1 or 3.1 RC 1.1 documentation.

    Code:
    var cb = {
        success: this.handleResponse,
        failure: this.handleFailure,
        scope: this,
        argument: {options: o},
        timeout : o.timeout || this.timeout
    };
    Needless to say, I passed it in and boom! it worked. My request is to add this to the documentation so others can save time. If by some event I have overlooked this, please excuse my oversight.

    Here's an example of code I ended up using with success.
    Code:
    Ext.Ajax.request({
       url: seedUrl,
       timeout: (1 * 60 * 1000), // Give the seed request a minute.
       success: requestSeedCallback,
       failure: asyncFailure
    });
    Fixed in SVN.

  4. #24
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,488

    Default

    [RESOLVED]

    url configuration of any Ext.data.Connection/Ext.Ajax can be a function which returns a url similar to how params works.
    Aaron Conran
    @aconran

  5. #25
    Sencha User mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236

    Default

    [RESOLVED]

    Ext.util.Format
    • undocumented math() method

  6. #26
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892

    Default

    [RESOLVED]

    Quote Originally Posted by mystix View Post
    Ext.util.Format
    • undocumented math() method

    Because nobody knows what it does!

  7. #27
    Sencha User mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236

    Default

    [RESOLVED]

    Quote Originally Posted by Animal View Post
    Because nobody knows what it does!
    i knew there was something fishy going on

  8. #28
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892

    Default

    [RESOLVED]

    Quote Originally Posted by aconran View Post
    url configuration of any Ext.data.Connection/Ext.Ajax can be a function which returns a url similar to how params works.
    Fixed in SVN.

  9. #29
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

    Default

    [IMPLEMENTED]

    Quote Originally Posted by Animal View Post
    Because nobody knows what it does!
    It does simple math for use in a templates, e.g.

    Code:
    var tpl = new Ext.Template('{value} * 10 = {value:math("* 10")}');

  10. #30
    Sencha User mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236

    Thumbs up

    [IMPLEMENTED]

    Quote Originally Posted by Condor View Post
    It does simple math for use in a templates, e.g.

    Code:
    var tpl = new Ext.Template('{value} * 10 = {value:math("* 10")}');
    you da man!

Page 3 of 45 FirstFirst 1234513 ... LastLast

Posting Permissions

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