added Declarative table to model view controls (#1593)

* added Declarative table to model view controls
This commit is contained in:
Leila Lali
2018-06-11 12:40:17 -07:00
committed by GitHub
parent 3be0c5130a
commit 4609694141
12 changed files with 380 additions and 1 deletions

View File

@@ -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;
}