TabSheetCell.toJSON

Syntax

toJSON();

Description

The toJSON method returns a cell object in the JSON format.

Example

To execute the example, the HTML page must contain the TabSheet component named tabSheet (see Example of Creating the TabSheet Component). Get JSON table cell view:

// Get table model
var model = tabSheet.getModel();
// Get coordinates
var coord = tabSheet.coord(0, 1);
// Get cell by coordinate
var cell = model.getCell(coord);
// Get
var string = cell.toJSON(); 
console.log(string);

After executing the example a JSON object of table cell is obtained.

See also:

TabSheetCell