API / geotoolkit / data / DataTable / DataTable
Type Aliases
Type Aliases
Ƭ 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<T>: (a: T, b: T) => number
| Name | Type |
|---|---|
T | any |
▸ (a, b): number
Defines comparator function that returns positive, negative and zero based on condition
| Name | Type |
|---|---|
a | T |
b | T |
number
Ƭ 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: Object
parameters
| Name | Type | Description |
|---|---|---|
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) => DataSeries | Deprecated since 4.0. Use 'columnfactory' instead a custom factory to create a new data series from object |
columnfactory? | (x: any) => DataSeries | a custom factory to create a new data series from object |
meta? | Record<string, any> | a map of meta information properties |
name? | string | data table name |
rowsdata? | any[][] | number | an array of rows or a number of empty rows to add |