mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-01 14:41:32 +00:00
Add fix for tests and visibility
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user