mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Adding option to sort columns using F3 key in SlickGrid. (#20897)
This commit is contained in:
@@ -335,6 +335,15 @@ export class TopOperationsTabView extends Disposable implements IPanelView {
|
||||
}
|
||||
}));
|
||||
|
||||
this._register(table.onKeyDown(e => {
|
||||
if (e.event.key === 'F3') {
|
||||
table.grid.sortColumnByActiveCell();
|
||||
e.event.preventDefault();
|
||||
e.event.stopPropagation();
|
||||
|
||||
}
|
||||
}));
|
||||
|
||||
this._register(table.onContextMenu(e => {
|
||||
let csvString = '';
|
||||
let csvStringWithHeader = '';
|
||||
|
||||
5
src/typings/slickgrid.d.ts
vendored
5
src/typings/slickgrid.d.ts
vendored
@@ -945,6 +945,11 @@ declare namespace Slick {
|
||||
**/
|
||||
public getSortColumns(): { columnId: string; sortAsc: boolean }[];
|
||||
|
||||
/**
|
||||
* sorts the table by the active cell column values.
|
||||
*/
|
||||
public sortColumnByActiveCell(): void;
|
||||
|
||||
/**
|
||||
* Updates an existing column definition and a corresponding header DOM element with the new title and tooltip.
|
||||
* @param columnId Column id.
|
||||
|
||||
Reference in New Issue
Block a user