Results 1 to 3 of 3

Thread: Ext.grid.column.Column sorter config is private

    You found a bug! We've classified it as DOXI-78 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1

    Default Answered: Ext.grid.column.Column sorter config is private

    I'd like to have a grid column purely for display that does not use a dataIndex or have a value, but can still be sorted by a specified field. The "sorter" config on Ext.grid.column.Column solves this problem (just specify the field name as a string), but it is marked "private". Looking at the source it seems like it would be fine as a public API method; what's the reason for marking it private?

    http://docs.sencha.com/extjs/6.2.0/c...tml#cfg-sorter

  2. It's not marked as private in the source, so it seems as though the doc parser is having some kind of issue:

    Code:
    /**
     * @cfg {Function/String/Object/Ext.util.Sorter} sorter
     * A Sorter, or sorter config object to apply when the standard user interface
     * sort gesture is invoked. This is usually clicking this column header, but
     * there are also menu options to sort ascending or descending.
     *
     * Note that a sorter may also be specified as a function which accepts two
     * records to compare.
     *
     * In 6.2.0, a `{@link Ext.app.ViewController controller}` method can be used
     * like so:
     *
     *      sorter: {
     *          sorterFn: 'sorterMethodName'
     *      }
     *
     * @since 6.0.1
     */
    sorter: null,
    Will move this to the docs board, it's a public config.

  3. #2
    Sencha Premium User
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,258
    Answers
    759

    Default

    It's not marked as private in the source, so it seems as though the doc parser is having some kind of issue:

    Code:
    /**
     * @cfg {Function/String/Object/Ext.util.Sorter} sorter
     * A Sorter, or sorter config object to apply when the standard user interface
     * sort gesture is invoked. This is usually clicking this column header, but
     * there are also menu options to sort ascending or descending.
     *
     * Note that a sorter may also be specified as a function which accepts two
     * records to compare.
     *
     * In 6.2.0, a `{@link Ext.app.ViewController controller}` method can be used
     * like so:
     *
     *      sorter: {
     *          sorterFn: 'sorterMethodName'
     *      }
     *
     * @since 6.0.1
     */
    sorter: null,
    Will move this to the docs board, it's a public config.

  4. #3
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Thanks for the report. Seems to be a known issue, being tracked as DOXI-78.

Similar Threads

  1. Why is the sorter config private on grid columns?
    By joshglendenning in forum Ext JS 6.x Q&A
    Replies: 1
    Last Post: 7 Mar 2017, 1:54 PM
  2. Ext.grid.column.Column sorter issue
    By wapiko in forum Sencha Ext JS Q&A
    Replies: 0
    Last Post: 11 May 2016, 4:46 PM
  3. Replies: 3
    Last Post: 29 Oct 2014, 3:19 PM
  4. Replies: 3
    Last Post: 4 Mar 2013, 8:11 AM

Tags for this Thread

Posting Permissions

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