add hide header to xlsx and printhtml
This commit is contained in:
+3
-3
@@ -5,7 +5,7 @@
|
||||
PHP Class : /Data/Xlsx.php
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : November 18th, 2012.
|
||||
Last Modified : October 1st, 2026.
|
||||
Last Modified : October 24th, 2026.
|
||||
|
||||
(c) 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
@@ -130,8 +130,8 @@ final class Xlsx {
|
||||
$this->sheet->writeTo('A'.(string) $this->baris, '');
|
||||
}
|
||||
|
||||
public function show_headers(): void {
|
||||
$this->sheet->writeHeader(array_column($this->atabel, 'n'))
|
||||
public function show_headers(bool $is_hide=false): void {
|
||||
if (!$is_hide) $this->sheet->writeHeader(array_column($this->atabel, 'n'))
|
||||
->applyFontStyleBold()
|
||||
->applyTextCenter()
|
||||
->applyBorder(Style::BORDER_STYLE_THIN);
|
||||
|
||||
Reference in New Issue
Block a user