Class DataTable

Index

Constructor methods

Methods

Constructor methods

constructor(data?: any, version?: any): DataTable

Parameters

  • data?: any optional
  • version?: any optional

Returns

DataTable

Methods

public addColumn(type: string, label?: string, id?: string): number

Parameters

  • type: string
  • label?: string optional
  • id?: string optional

Returns

number

public addColumn(descriptionObject: DataTableColumnDescription): number

Parameters

Returns

number

public addRow(cellObject: DataObjectCell): number

Parameters

Returns

number

public addRow(cellArray?: Array<any>): number

Parameters

  • cellArray?: Array<any> optional

Returns

number

public addRows(count: number): number

Parameters

  • count: number

Returns

number

public addRows(array: Array<google.visualization.DataObjectCell[]>): number

Parameters

  • array: Array<google.visualization.DataObjectCell[]>

Returns

number

public addRows(array: Array<any>): number

Parameters

  • array: Array<any>

Returns

number

public getFilteredRows(filters: DataTableCellFilter[]): Array<number>

Parameters

Returns

Array<number>

public getFormattedValue(rowIndex: number, columnIndex: number): string

Parameters

  • rowIndex: number
  • columnIndex: number

Returns

string

public getNumberOfColumns(): number

Returns

number

public getNumberOfRows(): number

Returns

number

public getValue(rowIndex: number, columnIndex: number): any

Parameters

  • rowIndex: number
  • columnIndex: number

Returns

any

public removeRow(rowIndex: number)

Parameters

  • rowIndex: number

public removeRows(rowIndex: number, numberOfRows: number)

Parameters

  • rowIndex: number
  • numberOfRows: number

public setColumnLabel(columnIndex: number, label: string)

Parameters

  • columnIndex: number
  • label: string