#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;
@@ -26,20 +26,6 @@ declare var componentHandler;
selector: 'checkbox-widget',
templateUrl: './checkbox.widget.html'
})
export class CheckboxWidget 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 CheckboxWidget extends WidgetComponent {
}