Class TrioWriter

Writes a trio document.

const trio = new TrioWriter()
.addComment('A comment')
.addNewLine()
.addDict(dict)
.addDict(dict2)
.toTrio()

Constructors

Methods

  • Add a comment to be written out into the trio document.

    Parameters

    • Optionalcomment: string

      The comment to add.

    Returns this

    The trio writer instance.

  • Add all of a grid's rows (dicts) to the trio document.

    Parameters

    • grid: HGrid

      The grid to add.

    Returns this

    The trio writer instance.

  • Adds a new line to be written out into the trio document.

    Returns this

    The trio write instance.