dioxus_lib::prelude

Trait HasFormData

source
pub trait HasFormData: HasFileData + Any {
    // Required method
    fn as_any(&self) -> &(dyn Any + 'static);

    // Provided methods
    fn value(&self) -> String { ... }
    fn valid(&self) -> bool { ... }
    fn values(&self) -> HashMap<String, FormValue> { ... }
}
Expand description

An object that has all the data for a form event

Required Methods§

source

fn as_any(&self) -> &(dyn Any + 'static)

return self as Any

Provided Methods§

source

fn value(&self) -> String

source

fn valid(&self) -> bool

source

fn values(&self) -> HashMap<String, FormValue>

Implementors§