Relative Content

Tag Archive for rustdioxus

Dioxus Router Error: use navigation doesnt work

I’m working on a project using Dioxus with routing. My problem occurs when trying to navigate to a different route in my component (src/pages/home.rs). I’m getting the following router-related

Getting Element Attributes in Dioxus

I was wondering how I could get element attributes in Dioxus in Rust. More specifically, how can I get the element height and width. The CSS uses % instead of px and I want to somehow get the px of the element.