getColumnLeftOffset(colIndex: Number);
colIndex. Table column index.
The getColumnLeftOffset method returns the starting coordinate of a table column.
This method returns an object of the PP.Ui.TabSheetCoord type.
To execute the example, the HTML page must contain the TabSheet component named tabSheet (see Example of Creating the TabSheet Component). Get value of the upper offset, which is starting point for the row with the index 2, and value of the left offset, which is starting point for the column with the index 1:
// Set row index
var rowIndex = 2;
// Get the upper offset where the row with the 2 index starts
var offset = tabSheet.getRowTopOffset(rowIndex);
console.log("Upper offset for the row with the index " + rowIndex + ": " + offset);
// Set column index
var columnIndex = 1;
// Get the coordinate, from which the column with the 1 index starts
offset = tabSheet.getColumnLeftOffset(columnIndex);
console.log("Left offset for the column with the index " + columnIndex + ": " + offset);
After executing the example the browser console shows the values of upper offset, which is starting point for the row with the index 2, and the left offset, which is starting point for the column with the index 1:
Upper offset for the row with the index 2: 150
Left offset for the column with the index 1: 200
See also: