sussudio
Version:
An unofficial VS Code Internal API
36 lines (35 loc) • 1.56 kB
text/typescript
/*---------------------------------------------------------------------------------------------
* 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 "../list/list.mjs";
import { Event } from "../../../common/event.mjs";
export interface ITableColumn<TRow, TCell> {
readonly label: string;
readonly tooltip?: string;
readonly weight: number;
readonly templateId: string;
readonly minimumWidth?: number;
readonly maximumWidth?: number;
readonly onDidChangeWidthConstraints?: Event<void>;
project(row: TRow): TCell;
}
export interface ITableVirtualDelegate<TRow> {
readonly headerRowHeight: number;
getHeight(row: TRow): number;
}
export interface ITableRenderer<TCell, TTemplateData> extends IListRenderer<TCell, TTemplateData> {
}
export interface ITableEvent<TRow> extends IListEvent<TRow> {
}
export interface ITableMouseEvent<TRow> extends IListMouseEvent<TRow> {
}
export interface ITableTouchEvent<TRow> extends IListTouchEvent<TRow> {
}
export interface ITableGestureEvent<TRow> extends IListGestureEvent<TRow> {
}
export interface ITableContextMenuEvent<TRow> extends IListContextMenuEvent<TRow> {
}
export declare class TableError extends Error {
constructor(user: string, message: string);
}