mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-30 17:23:29 -05:00
added Declarative table to model view controls (#1593)
* added Declarative table to model view controls
This commit is contained in:
@@ -112,6 +112,14 @@ export abstract class ComponentBase extends Disposable implements IComponent, On
|
||||
this.setProperties(properties);
|
||||
}
|
||||
|
||||
protected convertSize(size: number | string): string {
|
||||
let convertedSize: string = size ? size.toString() : '100%';
|
||||
if (!convertedSize.toLowerCase().endsWith('px') && !convertedSize.toLowerCase().endsWith('%')) {
|
||||
convertedSize = convertedSize + 'px';
|
||||
}
|
||||
return convertedSize;
|
||||
}
|
||||
|
||||
public get valid(): boolean {
|
||||
return this._valid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user