Skip to content

Added Normalization for EVENT_HANDLERS

Compare
Choose a tag to compare
@bencripps bencripps released this 16 Dec 21:25
· 165 commits to master since this release

Added function to normalize how arguments are passed to grid event handlers. All handlers will now have two arguments passed:

HANDLE_CELL_CLICK = ({ row, rowId, rowIndex }, e) => {}

The first object will contain contextual information that will differ depending on the event, and the second argument will be the browser event, if available. Released as a major because of breaking changes.