Adaptable

AdaptableBaseView

Extends AdaptableObjectConfig

Declared in src/modules/view/State.ts

#Properties

18 props

#columnSortingAdaptableColumnSorting[]

Specifies the sort order for columns in the current view.

#contextMenustring

The id of the context menu to use for this view. To define context menus, use the contextMenu property in the AdaptableState.

#customSortsstring[]

#dataSourceAdaptableDataSourceConfig

Per-view data-loading override (rare — e.g. one view server-driven while the others are client-side). Merged per key over viewDefaults.dataSource and the instance-level config (Adaptable.DataSource component or the Provider dataSource prop).

#dateFormatstring | ((date: Date) => string)

Will be used in cells, where a cell value is a Date and no other explicit format is provided.

#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.

#flashingCellsstring[]

#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>
  );
}

#includeColumnsstring[]

Only those columns will be made available to the view.

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

#keyboardNavigationAdaptableKeyboardNavigation

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

#permissions{ … }

  • #deletableboolean

  • #editableboolean

#privateEntitiesAdaptableStateEntities

#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'.

#singleColumnSortboolean

#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.

#styledCellsstring[]

#Used by