mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 01:25:37 -05:00
Cleanup and fixes for resource viewer and filter plugin (#12154)
* Cleanup and fixes for resource viewer and filter plugin * fix strict nulls
This commit is contained in:
@@ -68,6 +68,10 @@ export function textFormatter(row: number | undefined, cell: any | undefined, va
|
||||
return `<span title="${titleValue}" class="${cellClasses}">${valueToDisplay}</span>`;
|
||||
}
|
||||
|
||||
export function imageFormatter(row: number | undefined, cell: any | undefined, value: any, columnDef: any | undefined, dataContext: any | undefined): string {
|
||||
return `<img src="${value.text}" />`;
|
||||
}
|
||||
|
||||
/**
|
||||
* Provide slick grid cell with encoded ariaLabel and plain text.
|
||||
* text will be escaped by the textFormatter and ariaLabel will be consumed by slickgrid directly.
|
||||
|
||||
@@ -10,7 +10,7 @@ import { addDisposableListener } from 'vs/base/browser/dom';
|
||||
import { DisposableStore } from 'vs/base/common/lifecycle';
|
||||
import { withNullAsUndefined } from 'vs/base/common/types';
|
||||
|
||||
interface IExtendedColumn<T> extends Slick.Column<T> {
|
||||
export interface IExtendedColumn<T> extends Slick.Column<T> {
|
||||
filterValues?: Array<string>;
|
||||
}
|
||||
|
||||
@@ -84,6 +84,9 @@ export class HeaderFilter<T extends Slick.SlickData> {
|
||||
if (column.id === '_detail_selector') {
|
||||
return;
|
||||
}
|
||||
if ((<any>column).filterable === false) {
|
||||
return;
|
||||
}
|
||||
const $el = jQuery('<div tabIndex="0"></div>')
|
||||
.addClass('slick-header-menubutton')
|
||||
.data('column', column);
|
||||
|
||||
Reference in New Issue
Block a user