How to use the angular-gridster2.GridType.Fixed function in angular-gridster2

To help you get started, we’ve selected a few angular-gridster2 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Squidex / squidex / frontend / app / features / dashboard / pages / dashboard-page.component.ts View on Github external
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
    }
};