[−][src]Trait jss::traits::TStyle
Operation over component - set and remove style properties
Required Methods
fn set_apperance_style<T: Into<Appearance>>(
&mut self,
_: &str,
_: T
) -> Result<(), PropertyError>
&mut self,
_: &str,
_: T
) -> Result<(), PropertyError>
Set appearance styles such like Background
, BorderStyle
etc..
fn set_layout_style<T: Into<Layout>>(
&mut self,
_: &str,
_: T
) -> Result<(), PropertyError>
&mut self,
_: &str,
_: T
) -> Result<(), PropertyError>
Set layout styles such like Flex properties, Margin
, Padding
etc..
fn set_style<T: Into<PropertyValue>>(
&mut self,
_: &str,
_: T
) -> Result<(), PropertyError>
&mut self,
_: &str,
_: T
) -> Result<(), PropertyError>
Unified setter for any property
fn remove_style(&mut self, _: &str)
Remove property from style
Implementors
impl TStyle for Properties
[src]
impl TStyle for Properties
fn set_style<T: Into<PropertyValue>>(
&mut self,
name: &str,
property: T
) -> Result<(), PropertyError>
[src]
fn set_style<T: Into<PropertyValue>>(
&mut self,
name: &str,
property: T
) -> Result<(), PropertyError>
fn set_apperance_style<T: Into<Appearance>>(
&mut self,
name: &str,
property: T
) -> Result<(), PropertyError>
[src]
fn set_apperance_style<T: Into<Appearance>>(
&mut self,
name: &str,
property: T
) -> Result<(), PropertyError>
fn set_layout_style<T: Into<Layout>>(
&mut self,
name: &str,
property: T
) -> Result<(), PropertyError>
[src]
fn set_layout_style<T: Into<Layout>>(
&mut self,
name: &str,
property: T
) -> Result<(), PropertyError>
fn remove_style(&mut self, name: &str)
[src]
fn remove_style(&mut self, name: &str)