Adaptable

AdaptableComputedTableView

Declared in src/modules/transient/computed/State.ts

This is a runtime type and you should not use it directly. For the type of the configuration object, see AdaptableTableView.

For the computed pivot view, see AdaptableComputedPivotView.

It will be used for callback or functions that will have the runtime computed view that has all the information available and ready to use.

#Properties

39 props

#aggregationTypesrequiredRecord<string, AggregationType>

Resolved aggregation types (built-in + configured), by id.

#availableColumnsMaprequiredRecord<string, AdaptableColumn>

#columnsrequiredAdaptableTableColumn[]

#columnsMaprequiredRecord<string, AdaptableTableColumn>

#columnSortingrequiredAdaptableColumnSorting[]

Specifies the sort order for columns in the current view.

#contextMenurequiredContextMenu | null

#customSortsrequiredCustomSort[]

#dataSourcerequiredResolvedDataSourceConfig

Resolved data-loading config: instance < viewDefaults < view (per key).

#dataTypeToFilterTyperequiredPartial<Record<AdaptableDataType, FilterType>>

#dataTypeToSortTyperequiredPartial<Record<AdaptableDataType, SortType>>

#dateFormatrequired(date: Date) => string

#excludeColumnsstring[]

These columns will not be made available to the view, even if they are defined in the globalEntities.availableColumns.

If a view.columnOrder includes any of these columns, they will be ignored.

#filtersrequiredParsedColumnFilter[]

#filterTypesrequiredRecord<string, FilterType>

Resolved filter types (built-in + configured), by id.

#flashingCellsstring[]

#gridFilterExpressionrequirednull | string

#groupableColumnsrequiredAdaptableTableColumn[]

#groupColumnsrequiredAdaptableTableGroupColumn[]

#groupRenderStrategyrequired'single-column' | 'multi-column'

#idrequiredstring

View id.

This is the identifier of the view - mention this in AdaptableViewState.currentViewId to switch to this view.

import { Adaptable } from '@adaptabletools/datagrid-react';
import { data } from '';

export default function App() {
  return (
    <Adaptable.Provider
      adaptableId="app"
      primaryKey="id"
      data={data}
      defaultState={{
        view: {
          currentViewId: 'main',
          views: [
            {
              View id - will be used in the currentViewId
              id: 'main',
              label: 'Main',
            },
          ],
        },
      }}
    >
      <Adaptable.Workspace />
    </Adaptable.Provider>
  );
}

The id of the view: the id of its AdaptableBaseView.

#includeColumnsstring[]

Only those columns will be made available to the view.

If the view.columnOrder specifies other columns, they will be ignored.

#keyboardNavigationrequiredAdaptableKeyboardNavigation

How the arrow keys move around the grid: 'cell' moves an active cell, 'row' moves an active row and false turns keyboard navigation off.

When omitted, it is taken from viewDefaults.keyboardNavigation, and otherwise follows the selection mode: 'row' for 'single-row' and 'multi-row', 'cell' for the other modes.

#labelrequiredstring

The label of the view.

#multiSelectTargetrequired'all' | 'visible'

selection.multiSelectTarget for multi-row selection, 'all' otherwise.

#multiSelectWithrequired'click' | 'checkbox'

selection.multiSelectWith for multi-row selection, 'checkbox' otherwise.

#permissions{ … }

  • #deletableboolean

  • #editableboolean

#privateEntitiesAdaptableStateEntities

#quickSearchrequired{ … }

#removedAggregationTypesrequiredRecord<string, AggregationTypeLayer>

Aggregation type ids removed with false, and the layer that removed them.

#rowGroupsStateAdaptableRowGroupsState

Which row groups are expanded or collapsed. Same shape as Infinite Table's groupRowsState. Discarded automatically when the view's grouping changes, since group keys from the previous grouping are no longer valid.

#selectionAdaptableSelection

Describes the selection mode of the view and, optionally, the selected rows or cells.

When mode is omitted, it is inferred from value, then taken from viewDefaults.selectionMode, and finally defaults to 'multi-cell'.

#selectionModerequiredAdaptableSelectionMode

#selectionValueAdaptableComputedSelectionValue

#showCheckboxColumnrequiredboolean

#showColumnFiltersrequiredboolean

#singleColumnSortrequiredboolean

#sortTypesrequiredRecord<string, SortType>

#sourceViewIdstring

When this view was created via clone, the id of the view it was cloned from (or that view's own sourceViewId). Used by persist hydration so non-serializable members (functions) resolve against the authored ancestor view.

#styledCellsrequiredStyledCell[]

#Used by