File tree Expand file tree Collapse file tree
packages/excel-builder-vanilla Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,6 +29,25 @@ import { createWorksheet } from 'excel-builder-vanilla';
2929< / script >
3030```
3131
32+ ### Basic Usage
33+
34+ ``` ts
35+ import { Workbook , downloadExcelFile } from ' excel-builder-vanilla' ;
36+
37+ const originalData = [
38+ [' Artist' , ' Album' , ' Price' ],
39+ [' Buckethead' , ' Albino Slug' , 8.99 ],
40+ [' Buckethead' , ' Electric Tears' , 13.99 ],
41+ [' Buckethead' , ' Colma' , 11.34 ],
42+ ];
43+ const artistWorkbook = new Workbook ();
44+ const albumList = artistWorkbook .createWorksheet ({ name: ' Artists' });
45+ albumList .setData (originalData );
46+ artistWorkbook .addWorksheet (albumList );
47+
48+ downloadExcelFile (artistWorkbook , ' Artist WB.xlsx' );
49+ ```
50+
3251## Changelog
3352
3453[ CHANGELOG] ( https://github.com/ghiscoding/excel-builder-vanilla/blob/main/packages/excel-builder-vanilla/CHANGELOG.md )
You can’t perform that action at this time.
0 commit comments