GoogleDataConverter class
Represents Google data table class
- convertTo
- getColumnId
- getColumnLabel
- getColumnObject
- getColumnProperties
- getColumnType
- getNumberOfColumns
- getNumberOfRows
- getObject
- getRow
- getValue
- isEmpty
- loadFromJSON
- toJSON
Constructors
Section titled “Constructors”constructor
Section titled “constructor”The default constructor.
⊕ new GoogleDataConverter(data?: any): GoogleDataConverter
Parameters:
Section titled “Parameters:”- data:
any, Optional - The table instance or its JSON representation.
Public Methods
Section titled “Public Methods”convertTo
Section titled “convertTo”▸ convertTo(dataTable: EasyDataTable): void
Parameters:
Section titled “Parameters:”- dataTable:
EasyDataTable
Returns void
getColumnId
Section titled “getColumnId”Gets the column ID.
▸ getColumnId(colIndex: number): string
Parameters:
Section titled “Parameters:”- colIndex:
number- The column index.
Returns string - The column ID.
getColumnLabel
Section titled “getColumnLabel”Gets the column LABEL.
▸ getColumnLabel(colIndex: number): string
Parameters:
Section titled “Parameters:”- colIndex:
number- The column index.
Returns string - The column ID.
getColumnObject
Section titled “getColumnObject”Gets the column object.
▸ getColumnObject(colIndex: number): any
Parameters:
Section titled “Parameters:”- colIndex:
number- The column index.
Returns any - The column object.
getColumnProperties
Section titled “getColumnProperties”Gets the column properties.
▸ getColumnProperties(colIndex: number): any
Parameters:
Section titled “Parameters:”- colIndex:
number- The column index.
Returns any - The column properties.
getColumnType
Section titled “getColumnType”Gets the column type.
▸ getColumnType(colIndex: number): string
Parameters:
Section titled “Parameters:”- colIndex:
number- The column index.
Returns string - The column type.
getNumberOfColumns
Section titled “getNumberOfColumns”Gets the number of columns
▸ getNumberOfColumns(): number
Returns number - The number.
getNumberOfRows
Section titled “getNumberOfRows”Gets the number of rows.
▸ getNumberOfRows(): number
Returns number - The number.
getObject
Section titled “getObject”Gets the google data table object.
▸ getObject(): any
Returns any - The data table.
getRow
Section titled “getRow”▸ getRow(rowIndex: number): any[]
Parameters:
Section titled “Parameters:”- rowIndex:
number
Returns any[]
getValue
Section titled “getValue”Gets the value.
▸ getValue(rowIndex: number,colIndex: number): any
Parameters:
Section titled “Parameters:”- rowIndex:
number - colIndex:
number-
Returns any
isEmpty
Section titled “isEmpty”Cheсks wether the table is empty
▸ isEmpty(): boolean
Returns boolean - true if the table is empty, false if it is not.
loadFromJSON
Section titled “loadFromJSON”Loads data table from JSON.
▸ loadFromJSON(json: string): void
Parameters:
Section titled “Parameters:”- json:
string- The JSON representation.
Returns void
toJSON
Section titled “toJSON”Saves data table to JSON.
▸ toJSON(): string
Returns string - The JSON representation.