Color
class Color extends JsonConfig (View source)
Color Object
Calendar charts use a striped diagonal pattern to indicate that there is no data for a particular day. Use this object with backgroundColor and color options to override the grayscale defaults.
Constants
TYPE |
Type of JsonConfig object
|
Methods
Builds the Color object with specified options
Shortcut method to set the value of an option and return $this.
Parses the config array by passing the values through each method to check validity against if the option exists.
Specifies the background color.
Details
at line 54
__construct(
array $config = array())
Builds the Color object with specified options
in
JsonConfig at line 64
mixed
__get(
string $option)
Get the value of a set option via magic method.
in
JsonConfig at line 75
Options
getOptions()
Gets the Options object for the JsonConfig
in
JsonConfig at line 90
JsonConfig
setOption(
string $option,
mixed $value)
Shortcut method to set the value of an option and return $this.
In order to maintain backwards compatibility, ConfigObjects will be unwrapped.
in
JsonConfig at line 106
setOptions(
array $config)
Parses the config array by passing the values through each method to check validity against if the option exists.
in
JsonConfig at line 275
array
jsonSerialize()
Custom serialization of the JsonConfig object.
at line 68
Color
color(
string $fgColor)
Specifies the foreground color.
at line 80
Color
backgroundColor(
string $bgColor)
Specifies the background color.
at line 92
Color
opacity(
float $opacity)
Opacity, with 0.0 being fully transparent and 1.0 fully opaque.