Enum sauron::html::attributes::AttributeValue[][src]

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

Tuple Fields of FunctionCall

0: Value
Simple(Value)

a simple value, wrapper of primitive types

Tuple Fields of Simple

0: Value
Style(Vec<Style, Global>)

style values

Tuple Fields of Style

0: Vec<Style, Global>
EventListener(Listener<Event, MSG>)

Event Listener

Tuple Fields of EventListener

0: Listener<Event, MSG>
Empty

no value

Implementations

create an attribute from Vec