TableGridModel

Type: Class

How to get TableGridModel?

JavaScript

import TableGridModel from 'fontoxml-table-flow/src/TableGridModel/TableGridModel.js'

Creates a TableGridmodel, a generic way of describing a table.

Inserting new cells will make the internal model be resized to hold the new situation

Initially, the value of all cells is null.

Constructor arguments

  1. tableDefinition

    (Required)

Methods

getHeight

Type: Function

Returns the height of the table represented by this grid model.

Returns

getWidth

Type: Function

Returns the width of the table represented by this grid model.

Returns