Icon set
Methods
ConditionalFormat::iconStyle(int $style): self
ConditionalFormat::reverseIcons(bool $on = true): self
ConditionalFormat::iconsOnly(bool $on = true): selfint $style
bool $on
Three-colour traffic lights
$config = ['path' => './tests'];
$excel = new \Vtiful\Kernel\Excel($config);
$cf = new \Vtiful\Kernel\ConditionalFormat();
$cf->type(\Vtiful\Kernel\ConditionalFormat::TYPE_ICON_SETS)
->iconStyle(\Vtiful\Kernel\ConditionalFormat::ICONS_3_TRAFFIC_LIGHTS_UNRIMMED);
$excel->fileName('tutorial.xlsx')
->header(['score'])
->data([[10], [40], [55], [60], [70], [80], [90], [100]])
->conditionalFormatRange('A2:A9', $cf)
->output();Five-star rating (icons only)
Reversed icon order
Icon style constants
Last updated