added properties to inputbox and form to be able to change style fro… (#1371)

* added properties to inputbox and form to be able to change style from extension
* moved registerModelViewProvider from dashboard to ui namespace
This commit is contained in:
Leila Lali
2018-05-09 10:58:23 -07:00
committed by GitHub
parent f10e281ffc
commit bcd6178d67
10 changed files with 115 additions and 27 deletions

View File

@@ -86,10 +86,10 @@ export abstract class ComponentBase extends Disposable implements IComponent, On
});
}
public get title(): string {
public get enabled(): boolean {
let properties = this.getProperties();
let title = properties['title'];
return title ? <string>title : '';
let enabled = properties['enabled'];
return enabled !== undefined ? <boolean>enabled : true;
}
public get valid(): boolean {