Skip to content

Type Editor


Type Editor / @type-editor/tables / tableview/TableView

tableview/TableView

Classes

ClassDescription

TableView

Custom NodeView implementation for rendering table nodes with column resizing support.

This view creates a wrapper <div> containing a <table> element with a <colgroup> for column width management and a <tbody> for the actual table content. The column widths are synchronized with the document's column width attributes.

Example

typescript
const tableView = new TableView(tableNode, 100);
// tableView.dom returns the wrapper div
// tableView.contentDOM returns the tbody where content is rendered