图标集
函数原型
ConditionalFormat::iconStyle(int $style): self
ConditionalFormat::reverseIcons(bool $on = true): self
ConditionalFormat::iconsOnly(bool $on = true): selfint $style
bool $on
三色交通灯
$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();五星评分(仅显示图标)
反转图标方向
图标样式常量
Last updated