ngx-excel-template
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

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;

 }
}

Readme

Keywords

none

Package Sidebar

Install

npm i ngx-excel-template

Weekly Downloads

0

Version

0.1.2

License

none

Unpacked Size

293 kB

Total Files

26

Last publish

Collaborators

  • zinderud