new Report(notes, totalLabel [, timestamp])
Creates an instance of Report.
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
notes |
string | |||
totalLabel |
string | |||
timestamp |
any |
<optional> |
Date.now() |
Methods
-
calcPercentOf(path, totalRef)
-
Parameters:
Name Type Description path
string totalRef
string Returns:
this
-
section(name)
-
Parameters:
Name Type Description name
string Returns:
a new Section under that name
-
setTotal(value)
-
Parameters:
Name Type Description value
any -
toJSON()
-
Returns:
internal report