UNPKG

@alfresco/adf-core

Version:
44 lines (43 loc) 1.87 kB
/*! * @license * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { DataColumn } from './data-column.model'; import { DataRow } from './data-row.model'; import { DataSorting } from './data-sorting.model'; import { DataTableAdapter } from './datatable-adapter'; import { Subject } from 'rxjs'; export type SortingMode = 'client' | 'server'; export declare class ObjectDataTableAdapter implements DataTableAdapter { private _sorting; private _rows; private _columns; private _sortingMode; selectedRow: DataRow; rowsChanged: Subject<Array<DataRow>>; static generateSchema(data: any[]): any[]; get sortingMode(): SortingMode; set sortingMode(sortingMode: SortingMode); constructor(data?: any[], schema?: DataColumn[], sortingMode?: SortingMode); getColumnType(_row: DataRow, col: DataColumn): string; getRows(): Array<DataRow>; setRows(rows: Array<DataRow>): void; getColumns(): Array<DataColumn>; setColumns(columns: Array<DataColumn>): void; getValue(row: DataRow, col: DataColumn, resolver?: (_row: DataRow, _col: DataColumn) => any): any; getSorting(): DataSorting; setSorting(sorting: DataSorting): void; sort(key?: string, direction?: string, options?: Intl.CollatorOptions): void; }