TableNode Class
Remarks See Also

TableNode instances are diagram nodes that can be used to display tabular or list data.

Namespace: MindFusion.Diagramming
Package: TableNode.js


JavaScript  Copy Code

// class
TableNode.prototype = {}


Tables consist of Cell instances distributed across rows and columns. The number of rows and columns can be set by calling the redimTable method. Cells can be made to span several rows and columns by setting their rowSpan and columnSpan properties to values larger than one.

The structure of a table can be dynamically changed by adding and deleting rows and columns. This can be done with the addColumn and addRow methods as well as with the insertColumn, insertRow and redimTable methods. deleteRow and deleteColumn methods delete existing rows and columns.

Table cells can display text as specified via their texttextColor and textAlignment properties. Cells can also contain images, as set via the image and imageAlign properties.

Table nodes can show a caption in their title bar, whose text is set via the text property inherited from DiagramItem. The height of the caption bar is set via the captionHeight property.

 Inheritance Hierarchy


 See Also