TabSheetObject.getSizeCoord

Syntax

getSizeCoord();

Description

The getSizeCoord method gets the number of rows and columns included into object in the table.

Comments

This method returns a JSON object with the following fields: row - the number of rows, column - the number of columns.

Example

To execute the example, the HTML page must contain the TabSheet component named tabSheet (see Example of Creating the TabSheet Component) and the TabSheetObject component (see the TabSheetObject Constructor page). Determine the number of rows and columns contained in object in the table, and find object size in pixels:

// Determine object size in the number of rows and column occupied by the object
var sizeCoord = tabSheetObject.getSizeCoord();
console.log("Number of occupied rows: " + sizeCoord.row + ", Number of columns: " + sizeCoord.column);
// Get object size in pixels
var visibleSize = tabSheetObject.getVisibleSize();
console.log("Object width: " + visibleSize.width + ", Height: " + visibleSize.height);

After executing the example the browser console shows the number of rows and columns contained in table object, and also object size in pixels:

Number of included rows: 1, number of columns: 1

Object width: 32, height: 32

See also:

TabSheetObject