Created
May 1, 2019 17:43
-
-
Save rakia/97344221697554f6bc376611110ad4f4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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