DTable
Represents a table compound by different kind of cells
new DTable()
Instance Members
Returns the table represented as a string.
Parameters
Returns
String
:
Table represented as a string.
Returns the table represented as a string.
Parameters
Returns
String
:
Table represented as a string.
Initializes the content of the table.
Parameters
Returns the minimum number of rows needed by the table to represent it's data.
Parameters
Returns
Number
:
Rows needed.
Returns the minimum number of rows needed by the table to represent it's data.
Parameters
Returns
Number
:
Columns needed.
InheritedStretchCell
Represents a table cell which wraps another. It's the same kind of cell that StretchCell but
it's implementation is slightly different.
Extends
TCell
Parameters
text (String)
Content of the wrapped cell.
width (Number)
Width of the InheritedStretchCell.
height (Number)
Height of the InheritedStretchCell.
Instance Members
Returns the width of the cell.
Returns
Number
:
Width.
Returns the height of the cell.
Returns
Number
:
Height.
Returns a string representing this cell with the given width and height.
Parameters
width (Number)
Width of the cell to be drawn.
height (Number)
Height of the cell to be drawn.
Returns
String
:
Cell represented as a String.
RCell
Represents a table cell which content is right-aligned
Extends
TCell
Parameters
text (String)
Content of the new cell.
Instance Members
Returns a string representing this cell with the given width and height.
Parameters
width (Number)
Width of the cell to be drawn.
height (Number)
Height of the cell to be drawn.
Returns
String
:
Cell represented as a String.
StretchCell
Represents a table cell which wraps another
Parameters
width (Number)
Width of the StretchCell.
height (Number)
Height of the StretchCell.
text (String)
Content of the wrapped cell.
Instance Members
Returns the width of the cell.
Returns
Number
:
Width.
Returns the height of the cell.
Returns
Number
:
Height.
Returns a string representing this cell with the given width and height.
Parameters
width (Number)
Width of the cell to be drawn.
height (Number)
Height of the cell to be drawn.
Returns
String
:
Cell represented as a String.
TCell
Represents a table cell which content is left-aligned
Parameters
text (String)
Content of the new cell.
Instance Members
Returns a string representing this cell with the given width and height.
Parameters
width (Number)
Width of the cell to be drawn.
height (Number)
Height of the cell to be drawn.
Returns
String
:
Cell represented as a String.
▸
getContent(width, height)
Returns an Array of String compound by the text given to the constructor.
Parameters
width (Number)
Width of each String of the Array returned.
height (Number)
Amount of Strings stored in the Array returned.
Returns
Array<String>
:
Array containing the strings.
Returns the width of the cell.
Returns
Number
:
Width.
Returns the height of the cell.
Returns
Number
:
Height.
UnderlinedCell
Represents a table cell which content is left-aligned and underlined
new UnderlinedCell(inner: any, text:
String)
Extends
TCell
Parameters
text (String)
Content of the new cell.
Instance Members
Returns a string representing this cell with the given width and height.
Parameters
width (Number)
Width of the cell to be drawn.
height (Number)
Height of the cell to be drawn.
Returns
String
:
Cell represented as a String.