this.rowHeaders = true;
this.colHeaders = true;
var colArray=[];
for(var i=0;i<11;i++){
var cols={width:this.getColWidth(i)}
colArray.push(cols);}
$cookies.put(“cols”,JSON.stringify(colArray));
}
this.db = {
items: $rootScope.items
};
try{
this.cols=JSON.parse($cookies.get(“cols”));
}catch(e){ this.cols=[{width: 80}, {width: 80}, {width: 80},{width: 80},{width: 100},{width: 50},{width: 80},{width: 110},{width: 100},{width: 100},{width: 80}];
}
console.log(this.cols);
this.settings = {
afterColumnResize:this.Resize,afterChange:this.changeIt,afterRemoveRow: this.destroy,afterCreateRow:this.afterCreate,
stretchH: ‘all’,
autoWrapRow: true,
maxRows: 100,
rowHeaders: true,
colHeaders:true,
allowInsertRow:true,
allowInsertColumn: true,
fixedRowsTop: 2,
fixedRowsBottom: 2,
fixedColumnsLeft: 3,
columnSorting: {
indicator: true
},
autoColumnSize: {
samplingRatio: 23
},
mergeCells: true,
contextMenu: true,
manualRowResize: true,
manualColumnResize: true,
manualRowMove: true,
manualColumnMove: true
};