AttributeStyleTrait
This is the 'style' attribute trait.
This trait has been created to share common code between form elements classes, in this case the declaration of the 'style' attribute and its set/get methods.
Tags
Table of Contents
$style | : string | |
---|---|---|
getStyle() | This method returns the current value of the 'style' attribute. | : string |
setStyle() | This method sets the 'style' attribute with the given value and returns self. | : self |
Properties
$style
protected
string
$style
= ''
Methods
getStyle()
This method returns the current value of the 'style' attribute.
public
getStyle() : string
Return values
string —setStyle()
This method sets the 'style' attribute with the given value and returns self.
public
setStyle(string $style) : self
Parameters
- $style : string