Class: DTable

DTable()

DTable Class.

Constructor

new DTable()

Source:

Methods

colWidths(input) → {number}

Get the widths of rows.
Parameters:
Name Type Description
input array rows
Source:
Returns:
widths of the rows.
Type
number

dataTable(input) → {array}

Parse the input json.
Parameters:
Name Type Description
input json data in json format
Source:
Returns:
all data.
Type
array

drawAllTable(input)

Draw the complete table.
Parameters:
Name Type Description
input json json table
Source:

drawTable(input) → {string}

Draw the content of the table.
Parameters:
Name Type Description
input string list of rows of the table.
Source:
Returns:
rows of table.
Type
string

rowHeights(input) → {number}

Get the heights of rows.
Parameters:
Name Type Description
input array rows
Source:
Returns:
heights of the rows.
Type
number