peer pagination
This commit is contained in:
parent
46cba6ed2c
commit
d0f794d23e
@ -44,6 +44,7 @@
|
||||
"moment": "^2.24.0",
|
||||
"morgan": "^1.9.1",
|
||||
"ngx-cookie-service": "^2.2.0",
|
||||
"ngx-pagination": "^4.1.0",
|
||||
"node-cron": "^2.0.3",
|
||||
"pg": "^7.11.0",
|
||||
"pg-native": "^3.0.0",
|
||||
|
@ -16,6 +16,7 @@ import { TransServiceService } from '../../shared/services/trans-service.service
|
||||
import { ChartService} from '../../shared/services/chart.service';
|
||||
import { CustomLoader } from 'src/app/app.module';
|
||||
|
||||
import {NgxPaginationModule} from 'ngx-pagination';
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
@ -26,6 +27,7 @@ import { CustomLoader } from 'src/app/app.module';
|
||||
BlockAppendComponent
|
||||
],
|
||||
imports: [
|
||||
NgxPaginationModule,
|
||||
CommonModule,
|
||||
HomeRoutingModule,
|
||||
FormsModule,
|
||||
|
@ -240,7 +240,7 @@
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
<div [ngClass]="{peer_mobile_table : true, hght_40: peeritem.id != clickPeer }" id="peer_{{peer.id}}" #peeritem *ngFor="let peer of peers">
|
||||
<div [ngClass]="{peer_mobile_table : true, hght_40: peeritem.id != clickPeer }" id="peer_{{peer.id}}" #peeritem *ngFor="let peer of peers | paginate: { itemsPerPage: 10, currentPage: p }">
|
||||
|
||||
<div class="row peer_table_data">
|
||||
<div class="col-6 col-md-3 tble_col">
|
||||
@ -287,6 +287,9 @@
|
||||
|
||||
|
||||
</div>
|
||||
<div class="text-right mt-2">
|
||||
<pagination-controls (pageChange)="p = $event"></pagination-controls>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -6,6 +6,7 @@ import { TransServiceService } from '../../../shared/services/trans-service.serv
|
||||
import { map, catchError } from 'rxjs/operators';
|
||||
import { throwError} from 'rxjs';
|
||||
import { BlockAppendComponent } from '../block-append/block-append.component';
|
||||
import {NgxPaginationModule} from 'ngx-pagination';
|
||||
|
||||
@Component({
|
||||
selector: 'epic-explorer-latestblocks',
|
||||
@ -13,6 +14,8 @@ import { BlockAppendComponent } from '../block-append/block-append.component';
|
||||
styleUrls: ['./latestblocks.component.css'],
|
||||
})
|
||||
export class LatestblocksComponent implements OnInit {
|
||||
p: number = 1;
|
||||
|
||||
public hashvalues: any;
|
||||
public pagedata: any = [];
|
||||
public Merged_data: any = [];
|
||||
|
Loading…
Reference in New Issue
Block a user