Skip to content

Instantly share code, notes, and snippets.

@rakia
Created May 1, 2019 17:43
Show Gist options
  • Save rakia/97344221697554f6bc376611110ad4f4 to your computer and use it in GitHub Desktop.
Save rakia/97344221697554f6bc376611110ad4f4 to your computer and use it in GitHub Desktop.
onMouseDown(rowId: number, colId: number, cellsType: string) {
this.tableMouseDown = {rowId: rowId, colId: colId, cellsType: cellsType};
}
onMouseUp(rowId: number, colId: number, cellsType: string) {
this.tableMouseUp = {rowId: rowId, colId: colId, cellsType: cellsType};
if(this.tableMouseDown) {
this.newCellValue = '';
this.updateSelectedCellsState(this.tableMouseDown.colId, this.tableMouseUp.colId, this.tableMouseDown.rowId, this.tableMouseUp.rowId);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment