[−][src]Function sauron::prelude::styles
pub fn styles<V, MSG, P>(
pairs: P
) -> Attribute<&'static str, &'static str, AttributeValue, Event, MSG> where
P: AsRef<[(&'static str, V)]>,
V: Into<Value> + Clone,
A helper function which creates a style attribute by assembling the tuples into a string for the style value.
ⓘThis example is not tested
div([styles([("display", "flex"), ("flex-direction", "row")])], [])
is the same way of writing
ⓘThis example is not tested
div([style("display:flex;flex-direction:row;")],[])