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

    function

    Event that fires before to show cell or row editor.
    It is very useful for cases when requires to prevent showing editor.

    Example

    
    var grid = new FancyGrid({
      ...
      events: [{
    	beforeedit: function(grid, o){
    	  if(o.data.type === 'country'){
    		grid.stopEditor();
    	  }
    	}
      }]
      ...
    });
    
    • 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