This abstraction will present the contents of a DataFrame as if it were a well typed javascript object Vector.

Signature

Import

The is optimized for use in a loop and will return same object. See function for more details.

Constructors

Properties

PropertyModifiersTypeDescription
dataFrameDataFrame(BETA)
{
readonly [Property in keyof T]: Field<T[Property]>;
}
(BETA)
lengthnumber(BETA)

Methods

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Constructs a new instance of the DataFrameView class

Signature

  1. constructor(data: DataFrame);
ParameterTypeDescription
data

dataFrame property

Signature

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Signature

  1. readonly fields: {
  2. readonly [Property in keyof T]: Field<T[Property]>;
  3. };

length property

Signature

  1. get length(): number;

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

The contents of the object returned from this function are optimized for use in a loop. All calls return the same object but the index has changed.

Signature

Parameters

T

  1. const first = view.get(0);
  2. const third = view.get(2);
  3. // If you need three different objects, consider something like:
  4. const first = { ...view.get(0) };
  5. const second = { ...view.get(1) };

getFieldDisplayProcessor method

Helper function to return the DisplayProcessor for a given field column.

Signature

  1. getFieldDisplayProcessor(colIndex: number): DisplayProcessor | undefined;

Parameters

ParameterTypeDescription
colIndexnumberthe field column index for the data frame.

Returns:

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Signature

Returns: