@adaptabletools/adaptable
Version:
Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
144 lines (143 loc) • 4.19 kB
JavaScript
import { ApiBase } from './ApiBase';
export class OptionsApiImpl extends ApiBase {
getAdaptableId() {
return this.getAdaptableOptions().adaptableId;
}
getAdaptableStateKey() {
return this.getAdaptableOptions().adaptableStateKey;
}
isAutogeneratePrimaryKey() {
return this.getAdaptableOptions().autogeneratePrimaryKey;
}
getLicenseKey() {
return this.getAdaptableOptions().licenseKey;
}
getPrimaryKey() {
return this.getAdaptableOptions().primaryKey;
}
getUserName() {
return this.getAdaptableOptions().userName;
}
getAdaptableContext() {
if (this.getAdaptableOptions().adaptableContext == undefined) {
this.getAdaptableOptions().adaptableContext = {};
}
return this.getAdaptableOptions().adaptableContext;
}
getAdaptableOptions() {
return this.getOptions();
}
getActionColumnOptions() {
return this.getOptions().actionColumnOptions;
}
getRowFormOptions() {
return this.getOptions().rowFormOptions;
}
getCellSummaryOptions() {
return this.getOptions().cellSummaryOptions;
}
getCalendarOptions() {
return this.getOptions().calendarOptions;
}
getColumnOptions() {
return this.getOptions().columnOptions;
}
getNoteOptions() {
return this.getOptions().noteOptions;
}
getPredicateOptions() {
return this.getOptions().predicateOptions;
}
getCommentOptions() {
return this.getOptions().commentOptions;
}
getCustomSortOptions() {
return this.getOptions().customSortOptions;
}
getContainerOptions() {
return this.getOptions().containerOptions;
}
getDataSetOptions() {
return this.getOptions().dataSetOptions;
}
getNotificationsOptions() {
return this.getOptions().notificationsOptions;
}
getAlertOptions() {
return this.getOptions().alertOptions;
}
getDashboardOptions() {
return this.getOptions().dashboardOptions;
}
getEditOptions() {
return this.getOptions().editOptions;
}
getExportOptions() {
return this.getOptions().exportOptions;
}
getLayoutOptions() {
return this.getOptions().layoutOptions;
}
getColumnMenuOptions() {
return this.getOptions().columnMenuOptions;
}
getContextMenuOptions() {
return this.getOptions().contextMenuOptions;
}
getFilterOptions() {
return this.getOptions().filterOptions;
}
getExpressionOptions() {
return this.getOptions().expressionOptions;
}
getQuickSearchOptions() {
return this.getOptions().quickSearchOptions;
}
getFormatColumnOptions() {
return this.getOptions().formatColumnOptions;
}
getStateOptions() {
return this.getOptions().stateOptions;
}
getTeamSharingOptions() {
return this.getOptions().teamSharingOptions;
}
getUserInterfaceOptions() {
return this.getOptions().userInterfaceOptions;
}
getToolPanelOptions() {
return this.getOptions().toolPanelOptions;
}
getChartingOptions() {
return this.getOptions().chartingOptions;
}
getDataChangeHistoryOptions() {
return this.getOptions().dataChangeHistoryOptions;
}
getEntitlementOptions() {
return this.getOptions().entitlementOptions;
}
getFlashingCellOptions() {
return this.getOptions().flashingCellOptions;
}
getSettingsPanelOptions() {
return this.getOptions().settingsPanelOptions;
}
getFdc3Options() {
return this.getOptions().fdc3Options;
}
getDataImportOptions() {
return this.getOptions().dataImportOptions;
}
addToAdaptableContext(key, value) {
const adaptableContext = this.getAdaptableContext();
adaptableContext[key] = value;
}
removeFromAdaptableContext(key) {
const adaptableContext = this.getAdaptableContext();
delete adaptableContext[key];
}
clearAdaptableContext() {
this.getAdaptableOptions().adaptableContext = {};
}
}