Page tree
Skip to end of metadata
Go to start of metadata

TableRow extends Element

The API model used to edit rows in a table.

Methods

deleteRow()

Delete the row.

var row = editor.getAPIModelById('id');
row.deleteRow();

insertRow([before = false])

  • before <Boolean> Whether to add a line before

Add a line after it. If the before value is true, a row is added before the row.

var row = editor.getAPIModelById('id');
row.insertRow();	// add row after row
row.insertRow(true);	// add row before row

setRowHeight(value)

  • value <Number> Height of row. The unit of value is 'px'.

Sets the row height.

var row = editor.getAPIModelById('id');
row.setRowHeight(50);
  • No labels