GoogleDataConverter class

Represents Google data table class

Index

Constructors

Public Methods

Constructors


constructor

The default constructor. ⊕ new GoogleDataConverter(data?: any): GoogleDataConverter

Parameters:

  • data: any, Optional - The table instance or its JSON representation.

Public Methods


convertTo

▸ convertTo(dataTable: EasyDataTable): void

Parameters:

  • dataTable: EasyDataTable

Returns void


getColumnId

Gets the column ID.

▸ getColumnId(colIndex: number): string

Parameters:

  • colIndex: number - The column index.

Returns string - The column ID.


getColumnLabel

Gets the column LABEL.

▸ getColumnLabel(colIndex: number): string

Parameters:

  • colIndex: number - The column index.

Returns string - The column ID.


getColumnObject

Gets the column object.

▸ getColumnObject(colIndex: number): any

Parameters:

  • colIndex: number - The column index.

Returns any - The column object.


getColumnProperties

Gets the column properties.

▸ getColumnProperties(colIndex: number): any

Parameters:

  • colIndex: number - The column index.

Returns any - The column properties.


getColumnType

Gets the column type.

▸ getColumnType(colIndex: number): string

Parameters:

  • colIndex: number - The column index.

Returns string - The column type.


getNumberOfColumns

Gets the number of columns

▸ getNumberOfColumns(): number

Returns number - The number.


getNumberOfRows

Gets the number of rows.

▸ getNumberOfRows(): number

Returns number - The number.


getObject

Gets the google data table object.

▸ getObject(): any

Returns any - The data table.


getRow

▸ getRow(rowIndex: number): any[]

Parameters:

  • rowIndex: number

Returns any[]


getValue

Gets the value.

▸ getValue(rowIndex: number,colIndex: number): any

Parameters:

  • rowIndex: number
  • colIndex: number -

Returns any


isEmpty

Cheсks wether the table is empty

▸ isEmpty(): boolean

Returns boolean - true if the table is empty, false if it is not.


loadFromJSON

Loads data table from JSON.

▸ loadFromJSON(json: string): void

Parameters:

  • json: string - The JSON representation.

Returns void


toJSON

Saves data table to JSON.

▸ toJSON(): string

Returns string - The JSON representation.