Skip to content

✨ Bind DOM events to some components#61

Merged
Kerrick merged 1 commit intomasterfrom
bind-dom-events
Mar 9, 2018
Merged

✨ Bind DOM events to some components#61
Kerrick merged 1 commit intomasterfrom
bind-dom-events

Conversation

@Kerrick
Copy link
Copy Markdown
Contributor

@Kerrick Kerrick commented Mar 9, 2018

This commit binds global DOM event names (like onmouseenter) to components
that don't have interactivity added by an MDC Foundation. This allows you to
use them with bound actions much like normal HTML elements in your handlears.

Example:

{{#mdc-button onmouseenter=(action "foo")}}Hovery Button{{/mdc-button}}
{{#mdc-card as |card|}}
  {{card.media-item onclick=(action "bar") src="https://placekitten.com/960/480" width=480 size=3 alt="Kitty Cat"}}
{{/mdc-card}}

This commit binds global DOM event names (like `onmouseenter`) to components
that don't have interactivity added by an MDC Foundation. This allows you to
use them with bound actions much like normal HTML elements in your handlears.
@Kerrick Kerrick mentioned this pull request Mar 9, 2018
@Kerrick Kerrick merged commit a2d5148 into master Mar 9, 2018
Kerrick pushed a commit that referenced this pull request Mar 16, 2018
- ➕ Add prettier.js (#67)
- ➕ Add prettier.js (#62)
- ➖ Replace jQuery with native methods (#59)
- ✨ Bind DOM events to some components (#61)
- 🐛 Don't set foundations on destroyed components (#60)
- 🚑 Fix CI autodeploy
- :busts_in_sillhouette: Add Contributor
- 🚀 AutoDeploy docs to GitHub Pages on merge to master (#58)
- 💚 Temporary Travis CI workaround
- 👥 Add contributor
- ⬆️ [docs] Upgrade Ember Composable Helpers
- 🐛 Fix #52
- 📝 Fix contributors (#53)
- ⬆️ Upgrade Ember CLI to 2.18.0
- 🐛 If no label is present show the placeholder
- 🐛 Move ember-freestyle to devDependencies
- ✨ Implement {{mdc-drawer}}  (#45)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants