Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public changeConfig(config: GridsterItem[]) {
this.gridConfig = config;
this.grid.updateGrid();
}
}
const DEFAULT_OPTIONS: GridsterConfig = {
displayGrid: 'onDrag&Resize',
draggable: {
enabled: true
},
fixedColWidth: 254,
fixedRowHeight: 254,
gridType: GridType.Fixed,
maxItemCols: 3,
maxItemRows: 2,
outerMargin: true,
outerMarginBottom: 16,
outerMarginLeft: 16,
outerMarginRight: 16,
outerMarginTop: 120,
resizable: {
enabled: true
}
};