* Gets the current cell width in pixels. This is calculated based on the grid container width divided by the number of columns. * * @returns the cell width in pixels * * @example * const width = grid.cellWidth(); * console.log('Cell width:', width, 'px'); * * // Use cell widt
()
| 948 | * const widgetWidth = width * 3; // For a 3-column wide widget |
| 949 | */ |
| 950 | public cellWidth(): number { |
| 951 | return this._widthOrContainer() / this.getColumn(); |
| 952 | } |
| 953 | |
| 954 | /** return our expected width (or parent) , and optionally of window for dynamic column check */ |
| 955 | protected _widthOrContainer(forBreakpoint = false): number { |
no test coverage detected