mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-23 01:25:38 -05:00
redraw table header (#14963)
This commit is contained in:
@@ -37,7 +37,7 @@ export class HeaderFilter<T extends Slick.SlickData> {
|
||||
private columnDef!: FilterableColumn<T>;
|
||||
private buttonStyles?: IButtonStyles;
|
||||
private disposableStore = new DisposableStore();
|
||||
public enabled: boolean = true;
|
||||
private _enabled: boolean = true;
|
||||
|
||||
constructor() {
|
||||
}
|
||||
@@ -435,4 +435,18 @@ export class HeaderFilter<T extends Slick.SlickData> {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
}
|
||||
|
||||
public get enabled(): boolean {
|
||||
return this._enabled;
|
||||
}
|
||||
|
||||
public set enabled(value: boolean) {
|
||||
if (this._enabled !== value) {
|
||||
this._enabled = value;
|
||||
// force the table header to redraw.
|
||||
this.grid.getColumns().forEach((column) => {
|
||||
this.grid.updateColumnHeader(column.id);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user