-
Notifications
You must be signed in to change notification settings - Fork 59
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
[metal-events] Document process to emit events #308
Comments
hey @jonathantneal thanks, Just in case if that helps you while that gets documented : https://github.com/metal/metal-training |
Hey @jonathantneal We're currently in the process of improving Metal.js docs, we'll make sure that our improvements include this information. To answer your question, since class MyComponent extends Component {
someMethod() {
this.emit('customEventName', {
key: 'value'
});
}
} Hope that helps. |
Thanks, @pragmaticivan, @Robert-Frampton, that does help. Let me know if I can help with the docs, or at least help review them 😄 |
Moving this over to metaljs.com/issues bryceosterhaus/metaljs.com#86 |
I’m unsure how to emit events when working with metal.
In my case, I would like to emit events from metal-toggler whenever the component expands or collapses. How might I do this? I could not find emit documentation
The text was updated successfully, but these errors were encountered: