Skip to content

Commit

Permalink
feat(tabs): add animation done event angular#5238
Browse files Browse the repository at this point in the history
  • Loading branch information
amcdnl committed Sep 2, 2017
1 parent 1b6b270 commit 5bc588a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/tabs/tab-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ export class MdTabGroup extends _MdTabGroupMixinBase implements AfterContentInit
/** Event emitted when focus has changed within a tab group. */
@Output() focusChange: EventEmitter<MdTabChangeEvent> = new EventEmitter<MdTabChangeEvent>();

/** Event emitted when the body animation has completed */
@Output() animationDone: EventEmitter<void> = new EventEmitter<void>();

/** Event emitted when the tab selection has changed. */
@Output() selectChange: EventEmitter<MdTabChangeEvent> = new EventEmitter<MdTabChangeEvent>(true);

Expand Down Expand Up @@ -269,5 +272,6 @@ export class MdTabGroup extends _MdTabGroupMixinBase implements AfterContentInit
_removeTabBodyWrapperHeight(): void {
this._tabBodyWrapperHeight = this._tabBodyWrapper.nativeElement.clientHeight;
this._renderer.setStyle(this._tabBodyWrapper.nativeElement, 'height', '');
this.animationDone.emit();
}
}

0 comments on commit 5bc588a

Please sign in to comment.