TabSheetModel.clearCellSpans

Syntax

clearCellSpans();

Description

The clearCellSpans method clears borders within a range of merged table cells.

Example

To execute the example, the HTML page must contain the TabSheet component named tabSheet (see Example of Creating the TabSheet Component). Merge the B0 and B1 cells, and then clear borders within the created range of merged cells:

// Get cell range by the specified coordinates
var range = tabSheet.getRange(1, 0, 1, 1);
// Merge cells by the obtained range
tabSheet.merge(range);
// Refresh table
tabSheet.rerender();
// Clear borders of all merged cells
tabSheet.getModel().clearCellSpans();

After executing the example the B0 and B1 cells are merged, and next borders inside of this range are cleared:

See also:

TabSheetModel