【问题标题】:How to restrict DisplayGrid.Always to show only maxCols and maxRows如何限制 DisplayGrid.Always 只显示 maxCols 和 maxRows
【发布时间】:2022-06-24 01:42:06
【问题描述】:

我想限制网格线只出现在我在配置中指定的最大行数和列数 (12*12),但是我可以看到比指定布局更多的网格线,这让用户感到困惑。

这是配置

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,
}

【问题讨论】:

    标签: angular gridster angular-gridster2


    【解决方案1】:

    只需从配置中删除 gridType: GridType.Fixed。它完成了这项工作。

    【讨论】:

      猜你喜欢
      • 2012-11-02
      • 1970-01-01
      • 1970-01-01
      • 2011-08-09
      • 2015-11-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多