Style
Function prototypes
\Vtiful\Kernel\Table::style(int $type, int $number): self
\Vtiful\Kernel\Table::name(string $name): selfint $type
int $number
string $name
Example
Last updated
$config = ['path' => './'];
$excel = new \Vtiful\Kernel\Excel($config);
$table = new \Vtiful\Kernel\Table();
$table->name('Performance')
->style(\Vtiful\Kernel\Table::STYLE_TYPE_MEDIUM, 9)
->columns([
['header' => 'Name'],
['header' => 'Score'],
]);
$excel->fileName('tutorial.xlsx')
->data([
['Alice', 90],
['Bob', 80],
])
->addTable('A1:B3', $table)
->output();