Skip to content

Add Event Metadata #1517

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

Closed
wants to merge 57 commits into from
Closed

Conversation

ealmloff
Copy link
Member

@ealmloff ealmloff commented Oct 3, 2023

Adds the ability to add metadata to event listeners. This can be used to control when an event is triggered. For example with the intersection observer API, you can control what percentage of the element becoming visible triggers the event listener

div {
    onvisible[60]: move |_| todo!(),
}

Stacked on #1402
Resolves #1462
This could be used in #1011

@ealmloff ealmloff added core relating to the core implementation of the virtualdom breaking This is a breaking change html Related to the html crate labels Oct 3, 2023
@ealmloff ealmloff added this to the 0.5 Release milestone Oct 10, 2023
@jkelleyrtp jkelleyrtp closed this Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking This is a breaking change core relating to the core implementation of the virtualdom html Related to the html crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Event Handler Parameters
3 participants