BeforeFocusSet

fires before focus is set on a cell

boolean BeforeFocusSet(string cell){ ... };

Parameters

cellstringthe id of a cell

Returns

booleantrue to set focus on a cell, false to prevent setting focus

Example

spreadsheet.events.on("BeforeFocusSet", function(cell){
  console.log("Focus will be set on a cell "+spreadsheet.selection.getSelectedCell());
  return true;
});

Details

The event is blockable, returning false will prevent setting focus on a cell.

See also
Back to top