Skip to content

Commit

Permalink
Added valueChange event to datatable
Browse files Browse the repository at this point in the history
  • Loading branch information
Ørjan Solli committed Aug 7, 2017
1 parent bdfcf25 commit 5a53967
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/components/datatable/datatable.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {NgModule, Component, ElementRef, AfterContentInit, AfterViewInit, AfterViewChecked, OnInit, OnDestroy, Input,
import {NgModule, Component, ElementRef, AfterContentInit, AfterViewInit, AfterViewChecked, OnInit, OnDestroy, Input,
ViewContainerRef, ViewChild, IterableDiffers,
Output, EventEmitter, ContentChild, ContentChildren, Renderer2, QueryList, TemplateRef,
ChangeDetectorRef, Inject, forwardRef, EmbeddedViewRef, NgZone
Expand Down Expand Up @@ -617,6 +617,8 @@ export class DataTable implements AfterViewChecked,AfterViewInit,AfterContentIni

@Input() loadingIcon: string = 'fa-circle-o-notch';

@Output() valueChange: EventEmitter<any[]> = new EventEmitter<any[]>();

@Output() firstChange: EventEmitter<number> = new EventEmitter<number>();

@Output() onRowExpand: EventEmitter<any> = new EventEmitter();
Expand Down Expand Up @@ -810,6 +812,7 @@ export class DataTable implements AfterViewChecked,AfterViewInit,AfterContentIni
else {
this._value = val;
}
this.valueChange.emit(this.value);
}

@Input() get first(): number {
Expand Down

0 comments on commit 5a53967

Please sign in to comment.