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

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

Values of an attribute can be in these variants

Variants

FunctionCall

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

Tuple Fields of FunctionCall

0: Value
Simple

a simple value, wrapper of primitive types

Tuple Fields of Simple

0: Value
Style

style values

Tuple Fields of Style

0: Vec<Style>
EventListener

Event Listener

Tuple Fields of EventListener

0: Callback<MSG>
Empty

no value

Implementations

create an attribute from Vec