question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Any thoughts for "on" attributes for custom events?

See original GitHub issue

I use Picodom in Switzerland due to its size. Definitely good work!

However lately I’ve been wondering whether it’d be possible to support custom on attributes. For example: <todo-input onadd={() => ...} /> which would desugar to ~node.addEventListener('add', () => ...) where the todo-input node could dispatch add events using the CustomEvent constructor.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jorgebucarancommented, Dec 11, 2017

@Wildhoney Thanks! If I didn’t answer a question directly or you failed to receive the feedback you were looking for simply keep asking, I may get it right eventually! 😄

0reactions
jorgebucarancommented, Dec 12, 2017

If it’s not an issue, nevermind! I just didn’t like so much node.dispatchEvent and thought it would be nicer if you could call dispatchEvent without node.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding Events & Event Attributes
. Here are a few questions to help you identify the custom events (and their attributes) you should track for your business: ·...
Read more >
Custom Event and Attribute Management - Braze
This reference article covers managing custom events and attributes, as well as understanding data type comparisons.
Read more >
Introduction to custom events and attributes
An overview of the options to send custom events and attributes to New Relic.
Read more >
Custom Attribute in a Custom Event - IFS Community
Hi All,We have an custom event which should send an email when Application of Payment status is set to cancelled.
Read more >
Triggering a custom event with attributes from a Firefox ...
2 Answers 2 · This is the correct answer, that I needed to convert my extension to MV3. No idea what the concept...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found