0.1.2 • Published 5 years ago

ngx-excel-template v0.1.2

Weekly downloads
45
License
-
Repository
-
Last release
5 years ago

NgxExcelTemplate

excel file template It organizes your excel files that you have prepared as template.

edit {name} as key and value

install

npm i ngx-excel-template

usage

 interface KeyValuePair {
 key: string;
 value: string;
}

@Component({
 selector: 'app-file-template',
 templateUrl: './file-template.component.html',
 styleUrls: ['./file-template.component.scss']
})
export class FileTemplateComponent implements OnInit {
 filepath = 'assets/test.xlsx';
 constructor(  private excelService: NgxExcelTemplateService) { }

 ngOnInit() {
 }
 getFile() {

   this.excelService.exportExcel(this.filepath, 'filename.xlsx', 'Seetname', this.setvalues() );
 }

 setvalues(): KeyValuePair[] {
    const data: KeyValuePair[] = [
      { key: 'name', value: 'John' },
      { key: 'age', value: '123' },

     ];
    return data;

 }
}
0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago