[][src]Trait jss::traits::TStyle

pub trait TStyle: Debug + PartialEq + Clone {
    fn set_apperance_style<T: Into<Appearance>>(
        &mut self,
        _: &str,
        _: T
    ) -> Result<(), PropertyError>;
fn set_layout_style<T: Into<Layout>>(
        &mut self,
        _: &str,
        _: T
    ) -> Result<(), PropertyError>;
fn set_style<T: Into<PropertyValue>>(
        &mut self,
        _: &str,
        _: T
    ) -> Result<(), PropertyError>;
fn remove_style(&mut self, _: &str); }

Operation over component - set and remove style properties

Required Methods

Set appearance styles such like Background, BorderStyle etc..

Set layout styles such like Flex properties, Margin, Padding etc..

Unified setter for any property

Remove property from style

Implementors

impl TStyle for Properties
[src]