mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-21 09:35:38 -05:00
* query results filtering and sorting (#14589) * enable filter * attach button style * add hybrid data provider * make filter and sort work * fix editor switch issue * configuration * fix sort and filter * add more specific selector * fix hidden items issue * update text * revert text change * fix copy results issue * put feature behind preview flag * comments * fix tslint error
34 lines
1.1 KiB
TypeScript
34 lines
1.1 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import { IDisposableDataProvider } from 'sql/base/common/dataProvider';
|
|
import { IListStyles } from 'vs/base/browser/ui/list/listWidget';
|
|
import { Color } from 'vs/base/common/color';
|
|
|
|
export interface ITableMouseEvent {
|
|
anchor: HTMLElement | { x: number, y: number };
|
|
cell?: { row: number, cell: number };
|
|
}
|
|
|
|
export interface ITableStyles extends IListStyles {
|
|
tableHeaderBackground?: Color;
|
|
tableHeaderForeground?: Color;
|
|
}
|
|
|
|
export interface ITableSorter<T> {
|
|
(args: Slick.OnSortEventArgs<T>): void;
|
|
}
|
|
|
|
export interface ITableConfiguration<T> {
|
|
dataProvider?: IDisposableDataProvider<T> | Array<T>;
|
|
columns?: Slick.Column<T>[];
|
|
sorter?: ITableSorter<T>;
|
|
}
|
|
|
|
export interface FilterableColumn<T> extends Slick.Column<T> {
|
|
filterable?: boolean;
|
|
filterValues?: Array<string>;
|
|
}
|