Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Commit

Permalink
Set column width
Browse files Browse the repository at this point in the history
  • Loading branch information
srijken committed Nov 11, 2016
1 parent 51ba1db commit 6110791
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions angular-xlsx.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ angular.module("ngXlsx", [])
} else {
columnDef.interpolator = $interpolate(startSymbol + columnDef.field + endSymbol);
}

if(columnDef.width) {
d['!cols'].wpx = columnDef.width;
}
});

addCols(d, header, range);
Expand Down
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "angular-xlsx",
"version": "0.4.2",
"version": "0.4.3",
"license": "Apache",
"main": "dist/angular-xlsx.min.js",
"main": "angular-xlsx.js",
"dependencies": {
"js-xlsx": "~0.8.0",
"angular": "~1.5.5",
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-xlsx.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6110791

Please sign in to comment.