mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-25 17:23:10 -05:00
Adding top operations to execution plans (#19902)
* Adding top operations to execution plans * Adding title to links * Fixing pr comments * Hiding top operations icon in execution plan editor * Reducing outline width, adding separator and removing placeholder text * Registering TopOperationsTabView
This commit is contained in:
@@ -77,7 +77,7 @@ export function hyperLinkFormatter(row: number | undefined, cell: any | undefine
|
||||
cellClasses += ' missing-value';
|
||||
}
|
||||
} else if (isHyperlinkCellValue(value)) {
|
||||
return `<a class="${cellClasses}" href="#" >${escape(value.displayText)}</a>`;
|
||||
return `<a class="${cellClasses}" href="#" title="${escape(value.displayText)}">${escape(value.displayText)}</a>`;
|
||||
}
|
||||
return `<span title="${valueToDisplay}" class="${cellClasses}">${valueToDisplay}</span>`;
|
||||
}
|
||||
|
||||
@@ -31,3 +31,8 @@ export interface FilterableColumn<T> extends Slick.Column<T> {
|
||||
filterable?: boolean;
|
||||
filterValues?: Array<string>;
|
||||
}
|
||||
|
||||
export interface ITableKeyboardEvent {
|
||||
cell?: { row: number, cell: number };
|
||||
event: KeyboardEvent;
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ import 'vs/css!./media/slick.grid';
|
||||
import 'vs/css!./media/slickColorTheme';
|
||||
|
||||
import { TableDataView } from './tableDataView';
|
||||
import { ITableSorter, ITableMouseEvent, ITableConfiguration, ITableStyles } from 'sql/base/browser/ui/table/interfaces';
|
||||
import { ITableSorter, ITableMouseEvent, ITableConfiguration, ITableStyles, ITableKeyboardEvent } from 'sql/base/browser/ui/table/interfaces';
|
||||
|
||||
import * as DOM from 'vs/base/browser/dom';
|
||||
import { mixin } from 'vs/base/common/objects';
|
||||
@@ -59,6 +59,9 @@ export class Table<T extends Slick.SlickData> extends Widget implements IDisposa
|
||||
private _onColumnResize = new Emitter<void>();
|
||||
public readonly onColumnResize = this._onColumnResize.event;
|
||||
|
||||
private _onKeyDown = new Emitter<ITableKeyboardEvent>();
|
||||
public readonly onKeyDown = this._onKeyDown.event;
|
||||
|
||||
private _onBlur = new Emitter<void>();
|
||||
public readonly onBlur = this._onBlur.event;
|
||||
|
||||
@@ -126,6 +129,17 @@ export class Table<T extends Slick.SlickData> extends Widget implements IDisposa
|
||||
this.mapMouseEvent(this._grid.onHeaderClick, this._onHeaderClick);
|
||||
this.mapMouseEvent(this._grid.onDblClick, this._onDoubleClick);
|
||||
this._grid.onColumnsResized.subscribe(() => this._onColumnResize.fire());
|
||||
|
||||
this._grid.onKeyDown.subscribe((e, args: Slick.OnKeyDownEventArgs<T>) => {
|
||||
const evt = (e as JQuery.Event).originalEvent as KeyboardEvent;
|
||||
this._onKeyDown.fire({
|
||||
event: evt,
|
||||
cell: {
|
||||
row: args.row,
|
||||
cell: args.cell
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
public rerenderGrid() {
|
||||
|
||||
Reference in New Issue
Block a user