fn validate_input(event: web_sys::Event) -> Option<Msg> {
    let target = event
        .target()
        .unwrap()
        .dyn_into::<HtmlInputElement>()
        .unwrap();
    target.check_validity();
    if target.report_validity() {
        if let Ok(value) = target.value().parse::<u64>() {
            return Some(Msg::ConfigChanged(target.id(), value));
        }
    }
    None
}
/// Event callback that runs HTML form validations on the target form input element.
///
/// It returns a `Msg::ConfigChanged` if the modified field passes validations, or `None` if it
/// does not.
Event callback that runs HTML form validations on the target form input element.
It returns a `Msg::ConfigChanged` if the modified field passes validations, or `None` if it
does not.
Event callback that runs HTML form validations on the target form input element . It returns a ` Msg :: ConfigChanged ` if the modified field passes validations or ` None ` if it does not .
fn validate_input(event: web_sys::Event) -> Option<Msg> {
    let target = event
        .target()
        .unwrap()
        .dyn_into::<HtmlInputElement>()
        .unwrap();
    target.check_validity();
    if target.report_validity() {
        if let Ok(value) = target.value().parse::<u64>() {
            return Some(Msg::ConfigChanged(target.id(), value));
        }
    }
    None
}
fn validate_input ( event : web_sys :: Event ) -> Option < Msg > { let target = event . target ( ) . unwrap ( ) . dyn_into :: < HtmlInputElement > ( ) . unwrap ( ) ; target . check_validity ( ) ; if target . report_validity ( ) { if let Ok ( value ) = target . value ( ) . parse :: < u64 > ( ) { return Some ( Msg :: ConfigChanged ( target . id ( ) , value ) ) ; } } None }
Event callback that runs HTML form validations on the target form input element.
Event callback that runs HTML form validations on the target form input element .
event
web_sys::Event