1
입력이있는 테이블을 필터링 중이며 필터가 업데이트 될 때마다 테이블을 첫 번째 페이지로 재설정하려고합니다. 지금은 테이블이 표시되고 필터링은 작동하지만 테이블 페이지는 재설정되지 않습니다.NGX Datatable - 함수로 오프셋 재설정
표 :
<ngx-datatable
class='material'
[rows]='rows'
[columns]="columns"
[columnMode]="'standard'"
[headerHeight]="75"
[footerHeight]="50"
[scrollbarH]="true"
[rowHeight]="'auto'"
[limit]="5"
[selectionType]="'multiClick'"
[offset]="tableOffset"
>
</ngx-datatable>
관련 TS : 내가 잘못거야 곳
tableOffset = 0;
updateFilter(event, seachCriteria) {
// Filtering Process...
// Whenever the filter changes I want to go back to the first page
this.tableOffset = 0;
}
모든 포인터를 다음
내가 멀리에있는 무엇인가? EDIT
그래서 I는 (1) 오프셋 설정 시도 발견 this.tableOffset = 0으로 재설정; 는 작동했지만 화살표를 사용하여 다른 페이지로 이동할 때마다 리셋이 발생하지 않도록합니다.
이 버그는 무엇입니까? 아니면 누락 되었습니까?