Read + write style information to .xlsx #263

Open
protobi wants to merge 104 commits from protobi/master into master
2 changed files with 18 additions and 0 deletions
Showing only changes of commit 845d2a8880 - Show all commits

View File

@ -383,6 +383,15 @@ if ((typeof 'module' != 'undefined' && typeof require != 'undefined') || (typeo
$xf.attr('applyNumberFormat', "1");
}
if (attributes.alignment) {
var $alignment = createElement('<alignment></alignment>');
if (attributes.alignment.horizontal) { $alignment.attr('horizontal', attributes.alignment.horizontal);}
if (attributes.alignment.vertical) { $alignment.attr('vertical', attributes.alignment.vertical);}
if (attributes.alignment.indent) { $alignment.attr('indent', attributes.alignment.indent);}
if (attributes.alignment.wrapText) { $alignment.attr('wrapText', attributes.alignment.wrapText);}
$xf.append($alignment).attr('applyAlignment',1)
}
var $cellXfs = this.$styles.find('cellXfs');

View File

@ -5597,6 +5597,15 @@ if ((typeof 'module' != 'undefined' && typeof require != 'undefined') || (typeo
$xf.attr('applyNumberFormat', "1");
}
if (attributes.alignment) {
var $alignment = createElement('<alignment></alignment>');
if (attributes.alignment.horizontal) { $alignment.attr('horizontal', attributes.alignment.horizontal);}
if (attributes.alignment.vertical) { $alignment.attr('vertical', attributes.alignment.vertical);}
if (attributes.alignment.indent) { $alignment.attr('indent', attributes.alignment.indent);}
if (attributes.alignment.wrapText) { $alignment.attr('wrapText', attributes.alignment.wrapText);}
$xf.append($alignment).attr('applyAlignment',1)
}
var $cellXfs = this.$styles.find('cellXfs');