+ 4
Explain this
3 Respuestas
+ 2
yeah I want to know how it works
0
You mean how it works?
0
Like,there's a table with the id "grid" when the "create" button is being hit, the table size is modified,so there are the colums and the rows you put in. On the single cells of the table,there are click listeners which are called when a cell is clicked. There you can check if it was a double click or a single one. When it's a single one,the background of the cell you clicked is set to you specified background color. When you double click one,it's background is being reset.