Skip to content

Class: DataTableRowProxy

DataTableRowProxy is mainly for DataTableRow operations.

Hierarchy

Implements

Summary

Constructors

Properties

Class Properties

Currently none in this class.

Inherited Properties

Accessors

Class Accessors

Currently none in this class.

Inherited Accessors

Methods

Class Methods

Inherited Methods

Constructors

Constructor

+ new DataTableRowProxy(context: IContext): DataTableRowProxy

Overrides RowProxy.constructor

Parameters:

Name Type
context IContext

Returns: DataTableRowProxy

Methods

getCell

This method accepts 2 calling method, either passing in the columnIndex ONLY or passing in both row and column indexes. The latter is for backwards compatibility only and will be deprecated in the future release.

Param

Can either be row index or column index, depending on calling method.

Param

Either column index or undefined.

Call Signature

getCell(columnIndex): IDataTableCellProxy

Get a specific cell from the current row given a column index.

Parameters
columnIndex

number

The column index.

Returns

IDataTableCellProxy

Example
// Get cell at column 0 from the current row
const dataTableRowProxy = context;
const dataTableCell = dataTableRowProxy.getCell(0);
console.log(`Data table cell value: ${dataTableCell.getValue()}`);
Implementation of

IDataTableRowProxy.getCell

Call Signature

getCell(rowIndex, columnIndex): IDataTableCellProxy

Parameters
rowIndex

number

The row index.

columnIndex

number

The column index.

Returns

IDataTableCellProxy

Deprecated

Use getCell(columnIndex) instead. Passing row index is no longer supported. Implemented to allow backwards compatibility.

Implementation of

IDataTableRowProxy.getCell