angular-gridster2 icon indicating copy to clipboard operation
angular-gridster2 copied to clipboard

How to restrict DisplayGrid.Always to show only maxCols and maxRows

Open KuntadyYathish opened this issue 4 years ago • 2 comments

I want to restrict the grid lines to appear only till max number of rows and columns that I specified in configuration (12*12), however I could see more gridline than the specified layout, it's confusing to the user.

image

Here is the configuration this.options = { gridType: GridType.Fixed, displayGrid: DisplayGrid.Always, draggable: { enabled: false }, resizable: { enabled: false }, pushDirections: { north: false, east: true, south: false, west: true }, swap: true, enableEmptyCellDrop: true, emptyCellDropCallback: this.emptyCellClick.bind(this), fixedRowHeight: 90, fixedColWidth: 90, maxCols:12, maxRows:12, };

KuntadyYathish avatar Feb 15 '22 09:02 KuntadyYathish

you have to specify minCols and maxCols to rid off

Vasanthvivi avatar Feb 28 '22 10:02 Vasanthvivi

@tiberiuzuld This can be closed. The solution provided by setting minCols / maxCols is working fine.

EnricoVogt avatar Mar 28 '22 08:03 EnricoVogt