mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-21 01:25:37 -05:00
Remove calls to DOM.addClass and DOM.removeClass (#13063)
This commit is contained in:
@@ -173,7 +173,7 @@ export class TableView<T> implements IDisposable {
|
||||
this.domNode.setAttribute('aria-rowcount', '0');
|
||||
this.domNode.setAttribute('aria-readonly', 'true');
|
||||
|
||||
DOM.addClass(this.domNode, this.domId);
|
||||
this.domNode.classList.add(this.domId);
|
||||
this.domNode.tabIndex = 0;
|
||||
|
||||
DOM.toggleClass(this.domNode, 'mouse-support', typeof options.mouseSupport === 'boolean' ? options.mouseSupport : true);
|
||||
@@ -568,7 +568,7 @@ export class TableView<T> implements IDisposable {
|
||||
const cell = this.cache.alloc(column.id);
|
||||
row.cells[index] = cell;
|
||||
if (column.cellClass) {
|
||||
DOM.addClass(cell.domNode!, column.cellClass);
|
||||
cell.domNode!.classList.add(column.cellClass);
|
||||
}
|
||||
row.row.appendChild(cell.domNode!);
|
||||
}
|
||||
|
||||
@@ -161,7 +161,7 @@ class Trait<T> implements IDisposable {
|
||||
}
|
||||
|
||||
unrender(container: HTMLElement): void {
|
||||
DOM.removeClass(container, this._trait);
|
||||
container.classList.remove(this._trait);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -81,14 +81,14 @@ export class Table<T extends Slick.SlickData> extends Widget implements IDisposa
|
||||
this._register(DOM.addDisposableListener(this._container, DOM.EventType.FOCUS, () => {
|
||||
clearTimeout(this._classChangeTimeout);
|
||||
this._classChangeTimeout = setTimeout(() => {
|
||||
DOM.addClass(this._container, 'focused');
|
||||
this._container.classList.add('focused');
|
||||
}, 100);
|
||||
}, true));
|
||||
|
||||
this._register(DOM.addDisposableListener(this._container, DOM.EventType.BLUR, () => {
|
||||
clearTimeout(this._classChangeTimeout);
|
||||
this._classChangeTimeout = setTimeout(() => {
|
||||
DOM.removeClass(this._container, 'focused');
|
||||
this._container.classList.remove('focused');
|
||||
}, 100);
|
||||
}, true));
|
||||
|
||||
@@ -99,7 +99,7 @@ export class Table<T extends Slick.SlickData> extends Widget implements IDisposa
|
||||
this.styleElement = DOM.createStyleSheet(this._container);
|
||||
this._grid = new Slick.Grid<T>(this._tableContainer, this._data, this._columns, newOptions);
|
||||
this.idPrefix = this._tableContainer.classList[0];
|
||||
DOM.addClass(this._container, this.idPrefix);
|
||||
this._container.classList.add(this.idPrefix);
|
||||
if (configuration && configuration.sorter) {
|
||||
this._sorter = configuration.sorter;
|
||||
this._grid.onSort.subscribe((e, args) => {
|
||||
|
||||
Reference in New Issue
Block a user