mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-23 17:23:02 -05:00
Fixes accessibility for grid (#1592)
* adds neccessary code to read cell value for table cells * formatting
This commit is contained in:
10
src/sql/base/browser/ui/table/utils.ts
Normal file
10
src/sql/base/browser/ui/table/utils.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
export function defaultFormatter<T>(valueProperty: keyof T): Slick.Formatter<T> {
|
||||
return (row: number, cell: number, value: any, columnDef: Slick.Column<T>, dataContext: Slick.SlickData): string => {
|
||||
return value[valueProperty];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user