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

    function

    Grid context menu event.
    It occurs only on cell's mouse right click.

    Example

    
    var grid = new FancyGrid({
      ...
      events: [{
        contextmenu: function(grid, o){
          var me = this,
    		e = o.e;
    	  
    	  grid.selectRow(o.rowIndex);
    	  
    	  o.e.preventDefault();
    	  
    	  setTimeout(function (){
            showMenu(e);
     	  }, 50);
        }
      }]
      ...
    });
    
    function showMenu(e){
      
    }
    
    • 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