New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added all dt event emitters #15
Conversation
Adding DT event emitters at component scope to let trig event listeners to parent component. By example to get selected row, to style after draw ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replace dt instance in event emitted
Fixed ref to DT API
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed DT API call for event emitters
Cool - thanks for this. Are you happy for this to be included under the MIT license? |
For sure. |
I'm having trouble compiling this change. this.$emit(eName, { event: event, dt: dt }); is resulting in:
Reading this issue it appears that the event cycle hooks don't have access to |
Hi Allan Maybe should I declare types of event parameters emitted regarding this thread. I'm not familiar with TypeScript at all. Will give a look. https://itsjavascript.com/object-is-possibly-undefined-error-in-typescript?utm_content=cmp-true |
Thanks for the reply. I was getting errors unfortunately, but I found the solution was to use |
Adding DT event emitters at component scope to let trig event listeners to parent component. By example to get selected row, to style after draw ...