import { StyleDefinition } from '../style-definition' ; import { ITable , ICustomTableLayout } from '../../interfaces' ; /**
 * Class to create a table
 */ export class Table extends StyleDefinition < Table , ITable > { param _body constructor ( private _body ) { super ( ) ; this . content . table = { } ; this . content . table . body = this . _body ; } param layout public layout ( layout ) { this . content . layout = layout ; return this ; } param rows public headerRows ( rows ) { this . content . table . headerRows = rows ; return this ; } param widths public widths ( widths ) { this . content . table . widths = widths ; return this ; } param heights public heights ( heights ) { this . content . table . heights = heights ; return this ; } param apply public dontBreakRows ( apply ) { this . content . table . dontBreakRows = apply ; return this ; } param rows public keepWithHeaderRows ( rows ) { this . content . table . keepWithHeaderRows = rows ; return this ; } }