Skip to main content

OptimisticHtmlInputElement

Trait OptimisticHtmlInputElement 

Source
pub trait OptimisticHtmlInputElement {
    // Required methods
    fn form(&self) -> Option<HtmlFormElement>;
    fn checked(&self) -> bool;
}
Expand description

Support working with web_sys::HtmlInputElement

Required Methods§

Source

fn form(&self) -> Option<HtmlFormElement>

Get the web_sys::HtmlFormElement of an input.

Source

fn checked(&self) -> bool

Get the web_sys::HtmlInputElement::checked state of an input.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl OptimisticHtmlInputElement for Node

Source§

impl OptimisticHtmlInputElement for NodeRef

Available on crate feature yew only.

Implementors§