123456789101112131415161718 |
- mod button;
- mod checkbox;
- mod input;
- mod number;
- mod password;
- mod slider;
- mod textbox;
- use dioxus_core::{ElementId, RenderReturn, Scope};
- pub use input::*;
- pub(crate) fn get_root_id<T>(cx: Scope<T>) -> Option<ElementId> {
- if let RenderReturn::Sync(Ok(sync)) = cx.root_node() {
- sync.root_ids.get(0).and_then(|id| id.get())
- } else {
- None
- }
- }
|