/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { IListContextMenuEvent, IListEvent, IListGestureEvent, IListMouseEvent, IListRenderer, IListTouchEvent, } from '../../../../../vs/base/browser/ui/list/list'; import { Event } from '../../../../../vs/base/common/event'; export interface ITableColumn { readonly label: string; readonly tooltip?: string; readonly weight: number; readonly templateId: string; readonly minimumWidth?: number; readonly maximumWidth?: number; readonly onDidChangeWidthConstraints?: Event; project(row: TRow): TCell; } export interface ITableVirtualDelegate { readonly headerRowHeight: number; getHeight(row: TRow): number; } export interface ITableRenderer extends IListRenderer {} export interface ITableEvent extends IListEvent {} export interface ITableMouseEvent extends IListMouseEvent {} export interface ITableTouchEvent extends IListTouchEvent {} export interface ITableGestureEvent extends IListGestureEvent {} export interface ITableContextMenuEvent extends IListContextMenuEvent {} export class TableError extends Error { constructor(user: string, message: string) { super(`TableError [${user}] ${message}`); } }