TabSheetCellBorderStyle.toJSON

Syntax

toJSON();

Description

The toJSON method returns JSON object with border settings.

Example

To execute the example, get a cell range similarly to the example in description of the TabSheetCellSpan constructor. Get JSON object with border settings:

//Get table model
var model = tabSheet.getModel();
// Get default style
var style = model.getDefaultStyle();
// Get border
var border = style.getBorders()[0]
// Get JSON object
border.toJSON();
// -> Object {@I: "2", @S: "0", @W: "2", @C: "#FFFFFF"}

After executing the example the JSON object with border settings is obtained.

See also:

TabSheetCellBorderStyle