documentationfor yFiles for HTML 2.6

Central interface which provides support for tabular data presentation.

Inheritance Hierarchy
ITable
Implemented Interfaces

Remarks

This interface supports a presentation of data where the nodes of a diagram are organized in a tabular way, i.e., where each node is associated to a specific row and column in the grid-like structure of a table. The ITable together with its associated interfaces IColumn and IRow represents the model for the tabular presentation (or table, for short). It also provides means for altering the model, in particular creation (createChildColumn and createChildRow) and removal of columns and rows but also changing their size or appearance.

The table structure is backed by a group node. As a consequence, the nodes which should be presented in a tabular fashion need to be set up as children of this group node. Using a group node to hold the content nodes has several advantages: For example, when the group node is moved, the child nodes move accordingly, thus maintaining the visual clue that they are contained in the table group node.

Note that the table structure and its content nodes are only loosely coupled: the node's center coordinates determine the row and column that it belongs to.

Associating an ITable instance with its backing group node can most conveniently be done by setting a TableNodeStyle instance as style of the associated group node. This style manages the visualization of the individual rows and columns. It also associates its table with the group node by decorating its lookup to return the table instance.

User interaction is supported by the TableEditorInputMode which provides support for interactively resizing rows and columns, re-parenting them, or editing their labels.

Related Reading in the Developer's Guide

The table model with all relevant types and their relationships is presented in detail in the section Tables.

Type Details

yfiles module
view-table
yfiles-umd modules
view-table, view
Legacy UMD name
yfiles.graph.ITable

See Also

Properties

Methods

Events

Static Methods