Any thoughts for "on" attributes for custom events?
See original GitHub issueI 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:
- Created 6 years ago
- Comments:11 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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! 😄
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 withoutnode
.