#440 Dropdown widget stub, base widget component

This commit is contained in:
Denys Vuika
2016-07-25 12:54:36 +01:00
parent 0b03f2077c
commit b0b7a7130c
9 changed files with 101 additions and 69 deletions

View File

@@ -15,8 +15,8 @@
* limitations under the License.
*/
import { Component, Input, AfterViewInit } from '@angular/core';
import { FormFieldModel } from './../widget.model';
import { Component } from '@angular/core';
import { WidgetComponent } from './../widget.component';
declare let __moduleName: string;
declare var componentHandler;
@@ -27,20 +27,6 @@ declare var componentHandler;
templateUrl: './text.widget.html',
styleUrls: ['./text.widget.css']
})
export class TextWidget implements AfterViewInit {
@Input()
field: FormFieldModel;
hasField() {
return this.field ? true : false;
}
ngAfterViewInit() {
// workaround for MDL issues with dynamic components
if (componentHandler) {
componentHandler.upgradeAllRegistered();
}
}
export class TextWidget extends WidgetComponent {
}