DioxusLabs / DioxusLabs/dioxus
Add set_attribute API for MountedData API
Open
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
## Feature Request
```rust
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
```rust
let test = element.try_as_web_event().unwrap();
test.set_attribute("style", style).unwrap();
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.