mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-15 17:22:25 -05:00
Bug/accessibility 5 (#7008)
* fixing 6946 and 6796(second part) * fix for https://github.com/microsoft/azuredatastudio/issues/6726 * comments cleanup * taking PR comments * adding strong border for HC focus * convert to string template
This commit is contained in:
@@ -25,6 +25,7 @@ import { CheckboxSelectColumn, ICheckboxCellActionEventArgs } from 'sql/base/bro
|
||||
import { Emitter, Event as vsEvent } from 'vs/base/common/event';
|
||||
import { StandardKeyboardEvent } from 'vs/base/browser/keyboardEvent';
|
||||
import { KeyMod, KeyCode } from 'vs/base/common/keyCodes';
|
||||
import { slickGridDataItemColumnValueWithNoData, textFormatter } from 'sql/base/browser/ui/table/formatters';
|
||||
|
||||
@Component({
|
||||
selector: 'modelview-table',
|
||||
@@ -72,13 +73,15 @@ export default class TableComponent extends ComponentBase implements IComponent,
|
||||
width: col.width,
|
||||
cssClass: col.cssClass,
|
||||
headerCssClass: col.headerCssClass,
|
||||
toolTip: col.toolTip
|
||||
toolTip: col.toolTip,
|
||||
formatter: textFormatter,
|
||||
});
|
||||
} else {
|
||||
mycolumns.push(<Slick.Column<any>>{
|
||||
name: <string>col,
|
||||
id: <string>col,
|
||||
field: <string>col
|
||||
field: <string>col,
|
||||
formatter: textFormatter
|
||||
});
|
||||
}
|
||||
index++;
|
||||
@@ -95,8 +98,6 @@ export default class TableComponent extends ComponentBase implements IComponent,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static transformData(rows: string[][], columns: any[]): { [key: string]: string }[] {
|
||||
if (rows && columns) {
|
||||
return rows.map(row => {
|
||||
@@ -122,7 +123,8 @@ export default class TableComponent extends ComponentBase implements IComponent,
|
||||
syncColumnCellResize: true,
|
||||
enableColumnReorder: false,
|
||||
enableCellNavigation: true,
|
||||
forceFitColumns: true // default to true during init, actual value will be updated when setProperties() is called
|
||||
forceFitColumns: true, // default to true during init, actual value will be updated when setProperties() is called
|
||||
dataItemColumnValueExtractor: slickGridDataItemColumnValueWithNoData // must change formatter if you are changing explicit column value extractor
|
||||
};
|
||||
|
||||
this._table = new Table<Slick.SlickData>(this._inputContainer.nativeElement, { dataProvider: this._tableData, columns: this._tableColumns }, options);
|
||||
|
||||
Reference in New Issue
Block a user