Docs
API
  • sort(grid:Object, params: Object)

    function

    grid sort event.

    Example

    
    var grid = new FancyGrid({
      ...
      events: [{
        sort: function(grid, o){
          
        },
        scope: {}// not required
      },{
        celldblclick: function(grid, o){
          
        }
      }]
      ...
    });
    
    • key - String|Number.
      Column index(key).
    • action - String.
      Sort direction: asc, desc.