symfony-style-console
Version:
Use the style and utilities of the Symfony Console in Node.js
53 lines (52 loc) • 1.09 kB
TypeScript
import TableCellInterface from './TableCellInterface';
/**
* Represents an object literal containing the options of a [[TableCell]].
*/
export interface TableCellOptions {
rowspan: number;
colspan: number;
}
/**
* @author Abdellatif Ait boudad <a.aitboudad@gmail.com>
*
* Original PHP Class
*
* @author Florian Reuschel <florian@loilo.de>
*
* Port to TypeScript
*/
export default class TableCell implements TableCellInterface {
/**
* The cell's options.
*/
private options;
/**
* The cell's text content.
*/
private value;
/**
* Creates a new TableCell.
*
* @param value The cell's text content
* @param options The cell's options
*/
constructor(value?: string, options?: Partial<TableCellOptions>);
/**
* Returns the cell value.
*
* @return string
*/
toString(): string;
/**
* Gets number of colspan.
*
* @return colspan
*/
getColspan(): number;
/**
* Gets number of rowspan.
*
* @return rowspan
*/
getRowspan(): number;
}