DTable
new DTable()
Instance Members
▸
drawAllTable(data, input)
Draw the complete table.
drawAllTable(data: any, input:
json)
Parameters
Draw the content of the table.
Parameters
input (string)
list of rows of the table.
Returns
string
:
rows of table.
Parse the input json.
Parameters
input (json)
data in json format
Returns
array
:
all data.
▸
rowHeights(rows, input)
Get the heights of rows.
Parameters
Returns
number
:
heights of the rows.
Get the widths of rows.
Parameters
Returns
number
:
widths of the rows.
RCell
RCell Class
new RCell(text: any)
Extends
TCell
Parameters
Instance Members
▸
draw(width, height, input, input)
Function to draw a right cell.
Parameters
input (number)
width of the cell.
input (number)
height of the cell.
findClass
Find the class for the current value
findClass(value: any):
array
Parameters
Returns
array
:
classname, current class and params
StrechCell
StrechCell Class
new StrechCell(inner: any, width: any, heigth: any)
Extends
TCell
Parameters
Instance Members
Get the min width of a cell.
Parameters
input (number)
width of the cell.
input (number)
height of the cell.
▸
minHeight(input, input)
Get the min height cell.
Parameters
input (number)
width of the cell.
input (number)
height of the cell.
▸
draw(width, heigth, input, input)
Function to draw a cell.
Parameters
input (number)
width of the cell.
input (number)
height of the cell.
TCell
TCell Class.
new TCell(text: any)
Parameters
Instance Members
▸
draw(width, height, input, input)
Function to draw a cell.
Parameters
input (number)
width of the cell.
input (number)
height of the cell.
▸
getContent(width, height, input, input)
Get the content of a cell.
getContent(width: any, height: any, input:
number, input:
number)
Parameters
input (number)
width of the cell.
input (number)
height of the cell.
Get the min width of a cell.
Parameters
input (number)
width of the cell.
input (number)
height of the cell.
▸
minHeight(input, input)
Get the min height cell.
Parameters
input (number)
width of the cell.
input (number)
height of the cell.
UnderlinedCell
UnderlinedCell Class
new UnderlinedCell(inner: any)
Extends
TCell
Parameters
Instance Members
▸
draw(width, height, input, input)
Function to draw a underlined cell.
Parameters
input (number)
width of the cell.
input (number)
height of the cell.