Enum AttributeValue

Source
pub enum AttributeValue<MSG> {
    Simple(Value),
    Style(Vec<Style>),
    EventListener(EventCallback<MSG>),
    ComponentEventListener(ComponentEventCallback),
    Empty,
}
Expand description

Values of an attribute can be in these variants

Variants§

§

Simple(Value)

a simple value, wrapper of primitive types

§

Style(Vec<Style>)

style values

§

EventListener(EventCallback<MSG>)

Event EventCallback

§

ComponentEventListener(ComponentEventCallback)

Component 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