import { StyleDefinition } from '../style-definition' ; import { ICell } from '../../interfaces' ; /**
 * Class to create a cell of a table
 */ export class Cell extends StyleDefinition < Cell , ICell > { param data constructor ( private data ) { super ( ) ; for ( const key in this . data ) { this . content [ key ] = this . data [ key ] ; } } param space public colSpan ( cols ) { this . content . colSpan = cols ; return this ; } param rows public rowSpan ( rows ) { this . content . rowSpan = rows ; return this ; } param color public fillColor ( color ) { this . content . fillColor = color ; return this ; } param border public border ( border ) { this . content . border = border ; return this ; } }