AdaptableApi

View as Markdown

Run-time access to an AdapTable instance.

Each property is the API for one module. Call the module API for that module's behaviour; use gridApi for row data, selection and cell values, and agGridApi only when AdapTable does not wrap the AG Grid call.

TypeScript
export interface

Properties

PropertyTypeDescription
actionColumnApiActionColumnApiAction Columns and the controls they render: buttons, toggles, links, selects, commands, menus and forms.
agGridApiAgGridApiThe AG Grid API. Prefer the AdapTable APIs on this object; use this when AdapTable does not wrap the call.
alertApiAlertApiAlert Definitions and fired alerts: add, edit, suspend, evaluate and display them.
applicationApiApplicationApiApplication State: the key/value entries the host application stores alongside AdapTable State.
bulkUpdateApiBulkUpdateApiBulk Update: the value that will be written across the selected cells.
calculatedColumnApiCalculatedColumnApiCalculated Columns and the expressions that produce their values.
calendarApiCalendarApiWorking days and holidays, using the weekends and holiday list in Calendar Options.
cellSummaryApiCellSummaryApiThe Cell Summary operation for the current selection, and its value.
chartingApiChartingApiChart Definitions, currently open charts, and the containers they are shown in.
columnApiColumnApiColumns: lookup by id or friendly name, data type, and the matching AG Grid column definition.
columnMenuApiColumnMenuApiThe Column Menu: open it, and build its items.
columnScopeApiColumnScopeApiColumn Scope: which columns an object applies to, and whether a column is in a scope.
commentApiCommentApiCell Comments: threads, and adding or deleting a comment.
contextMenuApiContextMenuApiThe Context Menu: build its items.
customSortApiCustomSortApiCustom Sorts: non-standard sort orders for a column's values.
dashboardApiDashboardApiThe Dashboard: tabs, toolbars, visibility and floating position.
dataChangeHistoryApiDataChangeHistoryApiData Change History: the record of cell value changes.
dataImportApiDataImportApiData Import. Opens the Data Import wizard.
dataSetApiDataSetApiData Sets: the named sets of rows the grid can switch between.
destroy(config?:DestroyConfig) => voidCleanup method - call only for vanilla JavaScript components, as framework components handle cleanup on destroy/unmount. By default, it unmounts the Adaptable component and destroys the AG Grid instance.
entitlementApiEntitlementApiEntitlements: the access level of each module.
eventApiEventApiAdapTable events. on subscribes and returns an unsubscribe function; off removes a listener.
exportApiExportApiReports: run an export, and manage report definitions, formats, destinations and schedules.
expressionApiExpressionApiAdapTableQL expressions: validate, evaluate and open the expression editor.
fdc3ApiFdc3ApiFDC3: broadcast contexts and raise intents from the grid.
filterApiFilterApiFiltering. columnFilterApi is per-column filters, gridFilterApi is the grid filter, and clearAllFilters clears both.
flashingCellApiFlashingCellApiFlashing Cells: which cells flash when their value changes, and in which direction.
formatColumnApiFormatColumnApiFormat Columns: cell styles and display formats, including conditions.
freeTextColumnApiFreeTextColumnApiFree Text Columns and the text values stored against each row.
gridApiGridApiGrid data and selection: rows, cell values, filtering, sorting, row nodes and edited cells.
isDestroyed() => booleanWhether the Adaptable instance has been destroyed
isReady() => booleanWhether AdapTable has finished initialising and is ready to use.

Returns true once AG Grid has been created, Adaptable State has been applied to it (columns, theme, filters, sorts, Quick Search and the current Layout) and the AdapTable UI has been rendered. It is already true when plugins run onAdaptableReady and when the AdaptableReady event fires.

Returns false while AdapTable is still initialising, and after it has been destroyed (see isDestroyed).

To run code as soon as AdapTable is ready, subscribe to the AdaptableReady event instead of polling this method; a listener added after the event has fired is still called.
layoutApiLayoutApiLayouts: the current Table or Pivot Layout, and creating, selecting and extending Layouts.
namedQueryApiNamedQueryApiNamed Queries: saved AdapTableQL queries that can be run on their own.
noteApiNoteApiNotes attached to cells.
optionsApiOptionsApiThe Adaptable Options this instance was created with. Each getter returns one options section, read-only.
pluginsApiPluginsApiInstalled plugins. getipushpullPluginApi, getOpenFinPluginApi and getInteropioPluginApi return the plugin API when that plugin is loaded.
plusMinusApiPlusMinusApiPlus / Minus: the nudges that increment or decrement a numeric cell.
quickSearchApiQuickSearchApiQuick Search: the current search text and the styles used for matches.
rowFormApiRowFormApiRow Forms. Opens the form to create, clone or edit a row, and deletes a row by primary key.
settingsPanelApiSettingsPanelApiThe Settings Panel. Open it on a module, or on a custom settings panel.
shortcutApiShortcutApiShortcuts: keystrokes that change a numeric cell by a fixed amount.
smartEditApiSmartEditApiSmart Edit: the arithmetic operation applied to the selected numeric cells.
stateApiStateApiAdapTable State: initial state, the full state, and the state of one module.
statusBarApiStatusBarApiThe Status Bar and the AdapTable panels placed in it.
styledColumnApiStyledColumnApiStyled Columns: gradient, percent bar, badge, bullet chart, rating, sparkline, range bar and icon styles.
systemStatusApiSystemStatusApiThe System Status message shown in the toolbar and tool panel.
teamSharingApiTeamSharingApiTeam Sharing: objects shared between users, and importing a shared entity.
themeApiThemeApiThemes: the current theme, and the shipped and user themes that can be selected.
toolPanelApiToolPanelApiThe Tool Panel beside the grid, including custom tool panels.
userInterfaceApiUserInterfaceApiUser Interface: custom icons, editable and read-only cell styles, object tags, the progress indicator, custom windows, and showing or hiding the AdapTable UI.

Property Details

actionColumnApi

Action Columns and the controls they render: buttons, toggles, links, selects, commands, menus and forms.

TypeScript
actionColumnApi: ActionColumnApi;
Property Value

ActionColumnApi

agGridApi

The AG Grid API. Prefer the AdapTable APIs on this object; use this when AdapTable does not wrap the call.

TypeScript
agGridApi: AgGridApi;
Property Value

AgGridApi

alertApi

Alert Definitions and fired alerts: add, edit, suspend, evaluate and display them.

TypeScript
alertApi: AlertApi;
Property Value

AlertApi

applicationApi

Application State: the key/value entries the host application stores alongside AdapTable State.

TypeScript
applicationApi: ApplicationApi;
Property Value

ApplicationApi

bulkUpdateApi

Bulk Update: the value that will be written across the selected cells.

TypeScript
bulkUpdateApi: BulkUpdateApi;
Property Value

BulkUpdateApi

calculatedColumnApi

Calculated Columns and the expressions that produce their values.

TypeScript
calculatedColumnApi: CalculatedColumnApi;
Property Value

CalculatedColumnApi

calendarApi

Working days and holidays, using the weekends and holiday list in Calendar Options.

TypeScript
calendarApi: CalendarApi;
Property Value

CalendarApi

cellSummaryApi

The Cell Summary operation for the current selection, and its value.

TypeScript
cellSummaryApi: CellSummaryApi;
Property Value

CellSummaryApi

chartingApi

Chart Definitions, currently open charts, and the containers they are shown in.

TypeScript
chartingApi: ChartingApi;
Property Value

ChartingApi

columnApi

Columns: lookup by id or friendly name, data type, and the matching AG Grid column definition.

TypeScript
columnApi: ColumnApi;
Property Value

ColumnApi

columnMenuApi

The Column Menu: open it, and build its items.

TypeScript
columnMenuApi: ColumnMenuApi;
Property Value

ColumnMenuApi

columnScopeApi

Column Scope: which columns an object applies to, and whether a column is in a scope.

TypeScript
columnScopeApi: ColumnScopeApi;
Property Value

ColumnScopeApi

commentApi

Cell Comments: threads, and adding or deleting a comment.

TypeScript
commentApi: CommentApi;
Property Value

CommentApi

contextMenuApi

The Context Menu: build its items.

TypeScript
contextMenuApi: ContextMenuApi;
Property Value

ContextMenuApi

customSortApi

Custom Sorts: non-standard sort orders for a column's values.

TypeScript
customSortApi: CustomSortApi;
Property Value

CustomSortApi

dashboardApi

The Dashboard: tabs, toolbars, visibility and floating position.

TypeScript
dashboardApi: DashboardApi;
Property Value

DashboardApi

dataChangeHistoryApi

Data Change History: the record of cell value changes.

TypeScript
dataChangeHistoryApi: DataChangeHistoryApi;
Property Value

DataChangeHistoryApi

dataImportApi

Data Import. Opens the Data Import wizard.

TypeScript
dataImportApi: DataImportApi;
Property Value

DataImportApi

dataSetApi

Data Sets: the named sets of rows the grid can switch between.

TypeScript
dataSetApi: DataSetApi;
Property Value

DataSetApi

destroy

Cleanup method - call only for vanilla JavaScript components, as framework components handle cleanup on destroy/unmount. By default, it unmounts the Adaptable component and destroys the AG Grid instance.

TypeScript
destroy: (config?: DestroyConfig) => void;
Property Value

(config?:DestroyConfig) => void

entitlementApi

Entitlements: the access level of each module.

TypeScript
entitlementApi: EntitlementApi;
Property Value

EntitlementApi

eventApi

AdapTable events. on subscribes and returns an unsubscribe function; off removes a listener.

TypeScript
eventApi: EventApi;
Property Value

EventApi

exportApi

Reports: run an export, and manage report definitions, formats, destinations and schedules.

TypeScript
exportApi: ExportApi;
Property Value

ExportApi

expressionApi

AdapTableQL expressions: validate, evaluate and open the expression editor.

TypeScript
expressionApi: ExpressionApi;
Property Value

ExpressionApi

fdc3Api

FDC3: broadcast contexts and raise intents from the grid.

TypeScript
fdc3Api: Fdc3Api;
Property Value

Fdc3Api

filterApi

Filtering. columnFilterApi is per-column filters, gridFilterApi is the grid filter, and clearAllFilters clears both.

TypeScript
filterApi: FilterApi;
Property Value

FilterApi

flashingCellApi

Flashing Cells: which cells flash when their value changes, and in which direction.

TypeScript
flashingCellApi: FlashingCellApi;
Property Value

FlashingCellApi

formatColumnApi

Format Columns: cell styles and display formats, including conditions.

TypeScript
formatColumnApi: FormatColumnApi;
Property Value

FormatColumnApi

freeTextColumnApi

Free Text Columns and the text values stored against each row.

TypeScript
freeTextColumnApi: FreeTextColumnApi;
Property Value

FreeTextColumnApi

gridApi

Grid data and selection: rows, cell values, filtering, sorting, row nodes and edited cells.

TypeScript
gridApi: GridApi;
Property Value

GridApi

isDestroyed

Whether the Adaptable instance has been destroyed

TypeScript
isDestroyed: () => boolean;
Property Value

() => boolean

isReady

Whether AdapTable has finished initialising and is ready to use.

Returns true once AG Grid has been created, Adaptable State has been applied to it (columns, theme, filters, sorts, Quick Search and the current Layout) and the AdapTable UI has been rendered. It is already true when plugins run onAdaptableReady and when the AdaptableReady event fires.

Returns false while AdapTable is still initialising, and after it has been destroyed (see isDestroyed).

To run code as soon as AdapTable is ready, subscribe to the AdaptableReady event instead of polling this method; a listener added after the event has fired is still called.

TypeScript
isReady: () => boolean;
Property Value

() => boolean

layoutApi

Layouts: the current Table or Pivot Layout, and creating, selecting and extending Layouts.

TypeScript
layoutApi: LayoutApi;
Property Value

LayoutApi

namedQueryApi

Named Queries: saved AdapTableQL queries that can be run on their own.

TypeScript
namedQueryApi: NamedQueryApi;
Property Value

NamedQueryApi

noteApi

Notes attached to cells.

TypeScript
noteApi: NoteApi;
Property Value

NoteApi

optionsApi

The Adaptable Options this instance was created with. Each getter returns one options section, read-only.

TypeScript
optionsApi: OptionsApi;
Property Value

OptionsApi

pluginsApi

Installed plugins. getipushpullPluginApi, getOpenFinPluginApi and getInteropioPluginApi return the plugin API when that plugin is loaded.

TypeScript
pluginsApi: PluginsApi;
Property Value

PluginsApi

plusMinusApi

Plus / Minus: the nudges that increment or decrement a numeric cell.

TypeScript
plusMinusApi: PlusMinusApi;
Property Value

PlusMinusApi

quickSearchApi

Quick Search: the current search text and the styles used for matches.

TypeScript
quickSearchApi: QuickSearchApi;
Property Value

QuickSearchApi

rowFormApi

Row Forms. Opens the form to create, clone or edit a row, and deletes a row by primary key.

TypeScript
rowFormApi: RowFormApi;
Property Value

RowFormApi

settingsPanelApi

The Settings Panel. Open it on a module, or on a custom settings panel.

TypeScript
settingsPanelApi: SettingsPanelApi;
Property Value

SettingsPanelApi

shortcutApi

Shortcuts: keystrokes that change a numeric cell by a fixed amount.

TypeScript
shortcutApi: ShortcutApi;
Property Value

ShortcutApi

smartEditApi

Smart Edit: the arithmetic operation applied to the selected numeric cells.

TypeScript
smartEditApi: SmartEditApi;
Property Value

SmartEditApi

stateApi

AdapTable State: initial state, the full state, and the state of one module.

TypeScript
stateApi: StateApi;
Property Value

StateApi

statusBarApi

The Status Bar and the AdapTable panels placed in it.

TypeScript
statusBarApi: StatusBarApi;
Property Value

StatusBarApi

styledColumnApi

Styled Columns: gradient, percent bar, badge, bullet chart, rating, sparkline, range bar and icon styles.

TypeScript
styledColumnApi: StyledColumnApi;
Property Value

StyledColumnApi

systemStatusApi

The System Status message shown in the toolbar and tool panel.

TypeScript
systemStatusApi: SystemStatusApi;
Property Value

SystemStatusApi

teamSharingApi

Team Sharing: objects shared between users, and importing a shared entity.

TypeScript
teamSharingApi: TeamSharingApi;
Property Value

TeamSharingApi

themeApi

Themes: the current theme, and the shipped and user themes that can be selected.

TypeScript
themeApi: ThemeApi;
Property Value

ThemeApi

toolPanelApi

The Tool Panel beside the grid, including custom tool panels.

TypeScript
toolPanelApi: ToolPanelApi;
Property Value

ToolPanelApi

userInterfaceApi

User Interface: custom icons, editable and read-only cell styles, object tags, the progress indicator, custom windows, and showing or hiding the AdapTable UI.

TypeScript
userInterfaceApi: UserInterfaceApi;
Property Value

UserInterfaceApi