Skip to content
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

Add set_attribute API for MountedData API #3462

Open
wheregmis opened this issue Dec 27, 2024 · 0 comments
Open

Add set_attribute API for MountedData API #3462

wheregmis opened this issue Dec 27, 2024 · 0 comments

Comments

@wheregmis
Copy link

wheregmis commented Dec 27, 2024

Feature Request

onmounted: move |evt|{
 let element = Some(cx.data())
 // Currently, the MountedData API provides methods like `set_focus()` and `scroll_to()` for manipulating mounted elements, but lacks the ability to directly modify element styles after mounting.
}

If i want this to work on web i can do, but we dont have cross platform api to do this

       let test = element.try_as_web_event().unwrap();

        test.set_attribute("style", style).unwrap();
@wheregmis wheregmis changed the title Add set_style API for MountedData API Add set_attribute API for MountedData API Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant