/** * @private */Ext.define('Ext.exporter.file.ooxml.excel.Sheet', { extend: 'Ext.exporter.file.ooxml.XmlRels', config: { /** * @cfg {Ext.exporter.file.ooxml.excel.Workbook} workbook * * Reference to the parent workbook. */ workbook: null, nameTemplate: 'Sheet{0}' }, folder: 'sheet', fileName: 'sheet', destroy: function(){ this.callParent(); this.setWorkbook(null); }, updateIndex: function(index){ var name = this.getName(); if(index && !name){ this.setName(Ext.String.format(this.getNameTemplate(), index)); } }, applyName: function(value){ // Excel limits the worksheet name to 31 chars return Ext.String.ellipsis(String(value), 31); } });