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

    function

    row double click event.

    Example

    
    var grid = new FancyGrid({
      ...
      events: [{
        rowclick: function(grid, o){
          
        },
        scope: {}// not required
      },{
        rowdblclick: function(grid, o){
          
        }
      }]
      ...
    });
    

    Example: using data row item item is useful for not standard behaviour.

    
    var grid = new FancyGrid({
      ...
      events: [{
        rowclick: function(grid, o){
          o.item.set('age', 30);
          grid.update();
        },
        scope: {}// not required
      },{
        rowdblclick: function(grid, o){
          if(!$(o.e).hasClass('add-bonus')){
            return;
          }
          
          var bonus = 5000;
          
          o.item.set('salary', o.data.salary + bonus);
          grid.update();
        }
      }]
      ...
    });
    
    • e- Event
    • data - Object.
      Item values
    • cell - Dom.
      Cell dom.
    • column - Object.
      Column options.
    • columnIndex - Number.
      Column order index.
    • item - Model.
      Data row item.
      It is used for get/set value over methods: get/set by key
    • rowIndex - Number.
      row order index.
    • side - String.
      Side of column: left, center, right
    • value - String|Number|Array.
      Item value