pub enum AttributeValue<MSG> {
    FunctionCall(Value),
    Simple(Value),
    Style(Vec<Style>),
    EventListener(Listener<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>)

style values

§

EventListener(Listener<MSG>)

Event Listener

§

Empty

no value

Implementations§

source§

impl<MSG> AttributeValue<MSG>

source

pub fn from_styles(styles: impl IntoIterator<Item = Style>) -> Self

create an attribute from Vec