You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 24, 2019. It is now read-only.
This is an enhancement rather than an issue/bug, but I'm not too familiar with GitHub, and I didn't know if there was a better way to submit this. Anyway, I had a need for a few custom events, so I figured I'd share 😄. I've only done some quick testing so far, but everything looks to be in order.
I added editstart, which triggers when you focus a table cell and the editor appears, editend triggers when the editor is blurred and hidden, and editcancel triggers when you cancel editing by hitting ESC. Naturally, when cancelling (ESC), the editcancel and editend events will both trigger - editcancel goes first.
For the editend and editcancel events, the called function is passed a reference to the event and the table cell DOM element. The editstart function is passed the event, the table cell DOM element, and the editor input DOM element.
EDIT: I also updated the arguments that are passed to the called function for the change event. The previous ones remain the same (event, new value), but I added a third argument that contains the old cell value. This allows easy comparisons between the old and new values.
This is an enhancement rather than an issue/bug, but I'm not too familiar with GitHub, and I didn't know if there was a better way to submit this. Anyway, I had a need for a few custom events, so I figured I'd share 😄. I've only done some quick testing so far, but everything looks to be in order.
I added
editstart
, which triggers when you focus a table cell and the editor appears,editend
triggers when the editor is blurred and hidden, andeditcancel
triggers when you cancel editing by hitting ESC. Naturally, when cancelling (ESC), theeditcancel
andeditend
events will both trigger -editcancel
goes first.For the
editend
andeditcancel
events, the called function is passed a reference to the event and the table cell DOM element. Theeditstart
function is passed the event, the table cell DOM element, and the editor input DOM element.EDIT: I also updated the arguments that are passed to the called function for the
change
event. The previous ones remain the same (event, new value), but I added a third argument that contains the old cell value. This allows easy comparisons between the old and new values.The text was updated successfully, but these errors were encountered: