Skip to content

Commit

Permalink
Add more examples for creating a table instance.
Browse files Browse the repository at this point in the history
  • Loading branch information
alinex committed Jun 10, 2016
1 parent 6e949be commit 01f7514
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@ result = Table.toRecordObject example
The conversion to record object will loose the name of the first column so it
will always get 'ID' on back conversion ''fromRecordObject' if not defined otherwise.

To initialize a new Table instance from a RecordList use:

``` coffee
table = (new Table()).fromRecordList records
```

Additionally as one way conversion you may dump into a visible table using the
[report](http://alinex.github.io/node-report) package:

Expand Down

0 comments on commit 01f7514

Please sign in to comment.