mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-21 01:25:37 -05:00
apply css style at the right element (#14144)
* apply css style at the right element * make mergeCss protected
This commit is contained in:
@@ -23,7 +23,7 @@ import { ILogService } from 'vs/platform/log/common/log';
|
||||
@Component({
|
||||
selector: 'modelview-checkbox',
|
||||
template: `
|
||||
<div #input width="100%" [style.display]="display"></div>
|
||||
<div #input width="100%" [ngStyle]="CSSStyles"></div>
|
||||
`
|
||||
})
|
||||
export default class CheckBoxComponent extends ComponentBase<azdata.CheckBoxProperties> implements IComponent, OnDestroy, AfterViewInit {
|
||||
@@ -127,4 +127,10 @@ export default class CheckBoxComponent extends ComponentBase<azdata.CheckBoxProp
|
||||
public focus(): void {
|
||||
this._input.focus();
|
||||
}
|
||||
|
||||
public get CSSStyles(): azdata.CssStyles {
|
||||
return this.mergeCss(super.CSSStyles, {
|
||||
'display': this.display
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user