Enum vertigo::node_attr::NodeAttr[][src]

pub enum NodeAttr {
    Css {
        css: Css,
    },
    OnClick {
        event: Rc<dyn Fn()>,
    },
    OnInput {
        event: Rc<dyn Fn(String)>,
    },
    OnMouseEnter {
        event: Rc<dyn Fn()>,
    },
    OnMouseLeave {
        event: Rc<dyn Fn()>,
    },
    OnKeyDown {
        event: Rc<dyn Fn(KeyDownEvent) -> bool>,
    },
    Attr {
        name: &'static str,
        value: String,
    },
    DomRef {
        name: &'static str,
    },
    DomApply {
        apply: Rc<dyn Fn(&NodeRefs)>,
    },
}
Expand description

Virtual DOM node attribute.

Variants

Css

Fields

css: Css

OnClick

Fields

event: Rc<dyn Fn()>

OnInput

Fields

event: Rc<dyn Fn(String)>

OnMouseEnter

Fields

event: Rc<dyn Fn()>

OnMouseLeave

Fields

event: Rc<dyn Fn()>

OnKeyDown

Fields

event: Rc<dyn Fn(KeyDownEvent) -> bool>

Attr

Fields

name: &'static str
value: String

DomRef

Fields

name: &'static str

DomApply

Fields

apply: Rc<dyn Fn(&NodeRefs)>

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.