Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F61637890
page-result-filter.pipe.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, May 8, 00:14
Size
393 B
Mime Type
text/x-java
Expires
Fri, May 10, 00:14 (2 d)
Engine
blob
Format
Raw Data
Handle
17538870
Attached To
rNIETZSCHEBETAAPP Nietzsche-Beta-App
page-result-filter.pipe.ts
View Options
import { Pipe, PipeTransform } from '@angular/core';
import { ResultRange } from './paginator-result-status';
@Pipe({
name: 'pageResultFilter'
})
export class PageResultFilterPipe implements PipeTransform {
transform(results: any[], range: ResultRange): any[] {
if (results.length <= range.start){
return results;
}
return results.slice(range.start, range.end);
}
}
Event Timeline
Log In to Comment