插入链接
insertUrl(int $row, int $column, string $url[, string $text, string $toolTip, resource $formatHandler])
单元格所在行
单元格所在列
链接地址
链接文字
链接提示
链接样式
$excel = new \Vtiful\Kernel\Excel($config);
$urlFile = $excel->fileName("free.xlsx")
->header(['url']);
$fileHandle = $urlFile->getHandle();
$format = new \Vtiful\Kernel\Format($fileHandle);
$urlStyle = $format->bold()
->underline(\Vtiful\Kernel\Format::UNDERLINE_SINGLE)
->toResource();
$urlFile->insertUrl(1, 0, 'https://github.com', NULL, NULL, $urlStyle);
$urlFile->output();
Last modified 2yr ago