Trait dioxus::events::EvalProvider
source · pub trait EvalProvider {
// Required method
fn new_evaluator(&self, js: String) -> GenerationalBox<Box<dyn Evaluator>>;
}
Available on crate feature
html
only.Expand description
A struct that implements EvalProvider is sent through ScopeState
’s provide_context function
so that [use_eval
] can provide a platform agnostic interface for evaluating JavaScript code.