Maps API for JavaScript Developer's Guide

H.service.extension.customLocation.Table.Column

Class Summary

Implements: H.service.extension.dataView.IColumn

This class represents values of an specific attribute within a CLE layer as a table column. It implements the H.service.extension.dataView.IColumn.<*> interface.

[ For full details, see the Class Details ]

Method Summary

Table 1. Methods
Methods

setCell (rowIndex, value)

To set the value of the cell at the specified row.

getCell (rowIndex) : {(C | undefined)}

To get the cell value at the given row index

Class Description

This class represents values of an specific attribute within a CLE layer as a table column. It implements the H.service.extension.dataView.IColumn.<*> interface.

Constructor Details

H.service.extension.customLocation.Table.Column(table, columnName)

Parameters:
 
table:
{!H.service.extension.customLocation.Table}
 
The containing table of this column.
columnName:
{string}
 
The name of this column.

Method Details

setCell (rowIndex, value)

To set the value of the cell at the specified row.

GEOMETRY_ID cell of an existing row should not be modified to not cause data inconsistency.

Example

// Set value of the current column for the first row
column.setCell(0, "HERE Technologies");
Parameters:
 
rowIndex:
{number}
 
The index of the cell's row
value:
{*}
 
The cell's value to set
Throws:
 
{H.lang.InvalidArgumentError}
 
if a row with the given index doesn't exist.

getCell (rowIndex) : {(C | undefined)}

To get the cell value at the given row index

Parameters:
 
rowIndex:
{number}
 
The zero-based index of the cell's row
Returns:
 
{(C | undefined)}
The specified cell or undefined if the row index is out of range.