Menu

#11 simplify table cell event handling

open
nobody
None
5
2008-10-17
2008-10-17
Rich K
No

one complex thing in the current implementation is using displayObjects to generate cell html and handle events. Noting that we can grab both row and column information from the cell object itself (TD.cellIndex-1 and TD.parentNode.rowIndex, respectively), we can determine the property (and thus all the other stuff) from a generic event handler. We could then place the event handler at the table level, and have that handler dispatch the appropriate handler for the cell.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.