Last updated

API / geotoolkit / data / DataTable / DataTable

Namespace: DataTable

data.DataTable.DataTable

Table of contents

Type Aliases

Contents

Type Aliases

Column

Ƭ Column: DataSeries | { data?: any[] ; formula?: FormulaCallback | string ; id?: number | string ; name?: string ; sources?: AbstractDataSeries[] ; type?: string ; unit?: string | AbstractUnit }

a DataSeries object or a object containing descriptions.


ComparatorCallback

Ƭ ComparatorCallback<T>: (a: T, b: T) => number

Type parameters

NameType
Tany

Type declaration

▸ (a, b): number

Defines comparator function that returns positive, negative and zero based on condition

Parameters
Name Type
aT
bT
Returns

number


EventMap

Ƭ EventMap: EventMap & { ColumnsAdded: { count: number ; from: number } ; ColumnsAdding: void ; ColumnsRemoved: { count: number ; from: number ; values: DataSeries[] } ; ColumnsRemoving: { count: number ; from: number } ; RowsAdded: { count: number ; from: number } ; RowsAdding: { count: number ; from: number } ; RowsRemoved: { count: number ; from: number } ; RowsRemoving: { count: number ; from: number } ; UnitChanged: number[] ; Updated: any ; ValuesAdded: number[] ; ValuesRemoved: number[] ; ValuesSet: { count: number ; index: number } | number[] | void ; ValuesUpdated: number[] }


Options

Ƭ Options: Object

parameters

Type declaration

NameTypeDescription
cols?(DataSeries | Options)[]an array of series to represents columns. All columns must have the same number of rows
colsdata?any[][]an array of columns data to add. Will be ignored if rowsdata is not null
columnFactory?(x: any) => DataSeriesDeprecated since 4.0. Use 'columnfactory' instead a custom factory to create a new data series from object
columnfactory?(x: any) => DataSeriesa custom factory to create a new data series from object
meta?Record<string, any>a map of meta information properties
name?stringdata table name
rowsdata?any[][] | numberan array of rows or a number of empty rows to add