Add fix for tests and visibility

This commit is contained in:
Vito Albano
2016-10-05 17:22:48 +01:00
parent fa456f348c
commit 29202c3a9c
7 changed files with 501 additions and 453 deletions

View File

@@ -15,8 +15,8 @@
* limitations under the License.
*/
import { Component, Input, AfterViewInit } from '@angular/core';
import { TabModel } from './../core/index';
import { Component, Input, AfterViewInit, EventEmitter, Output } from '@angular/core';
import { TabModel, FormFieldModel } from './../core/index';
declare let __moduleName: string;
declare var componentHandler;
@@ -31,6 +31,9 @@ export class TabsWidget implements AfterViewInit {
@Input()
tabs: TabModel[] = [];
@Output()
formTabChanged: EventEmitter<FormFieldModel> = new EventEmitter<FormFieldModel>();
hasTabs() {
return this.tabs && this.tabs.length > 0;
}
@@ -47,4 +50,9 @@ export class TabsWidget implements AfterViewInit {
}
return false;
}
tabChanged( field: FormFieldModel ) {
this.formTabChanged.emit(field);
}
}