dioxus_native_core::node_watcher

Trait NodeWatcher

Source
pub trait NodeWatcher<V: FromAnyValue + Send + Sync> {
    // Provided methods
    fn on_node_added(&mut self, _node: NodeMut<'_, V>) { ... }
    fn on_node_removed(&mut self, _node: NodeMut<'_, V>) { ... }
    fn on_node_moved(&mut self, _node: NodeMut<'_, V>) { ... }
}
Expand description

A trait for watching for changes in the DOM tree.

Provided Methods§

Source

fn on_node_added(&mut self, _node: NodeMut<'_, V>)

Called after a node is added to the tree.

Source

fn on_node_removed(&mut self, _node: NodeMut<'_, V>)

Called before a node is removed from the tree.

Source

fn on_node_moved(&mut self, _node: NodeMut<'_, V>)

Called after a node is moved to a new parent.

Implementors§