logo
pub enum AttributeValue<MSG> {
    FunctionCall(Value),
    Simple(Value),
    Style(Vec<Style, Global>),
    EventListener(Listener<Event, MSG>),
    Empty,
}
Expand description

Values of an attribute can be in these variants

Variants

FunctionCall(Value)

an argument value, to be called as parameter, the function is called to the element

Simple(Value)

a simple value, wrapper of primitive types

Style(Vec<Style, Global>)

style values

EventListener(Listener<Event, MSG>)

Event Listener

Empty

no value

Implementations

create an attribute from Vec