I've implemented a basic columns width feature that searches for columns config in data.sheet.cols and generates XML according to Microsoft documentation
const data = { filename: 'report', sheet: { data: [ [{ value: 'Test', type: 'string' }, { value: 1000, type: 'number' }] ], cols: [{ width: 150 }, { width: 60 }] } };
As a result this config returns XML as shown below:
<cols><col min="1" max="1" width="25" /><col min="2" max="2" width="10" /></cols>
Pull Request is coming..
I've implemented a basic columns width feature that searches for columns config in data.sheet.cols and generates XML according to Microsoft documentation
const data = { filename: 'report', sheet: { data: [ [{ value: 'Test', type: 'string' }, { value: 1000, type: 'number' }] ], cols: [{ width: 150 }, { width: 60 }] } };As a result this config returns XML as shown below:
<cols><col min="1" max="1" width="25" /><col min="2" max="2" width="10" /></cols>Pull Request is coming..