Socket
Socket
Sign inDemoInstall

@verzth/ngx-bootstrap-pagination

Package Overview
Dependencies
1
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @verzth/ngx-bootstrap-pagination

[![GitHub version](https://badge.fury.io/gh/verzth%2Fngx-bootstrap-pagination.svg)](https://badge.fury.io/gh/verzth%2Fngx-bootstrap-pagination) [![npm version](https://badge.fury.io/js/%40verzth%2Fngx-bootstrap-pagination.svg)](https://badge.fury.io/js/%


Version published
Maintainers
1
Install size
146 kB
Created

Readme

Source

ngx-bootstrap-pagination

GitHub version npm version

Typescript Library for Angular 7 Pagination which is compatible with Laravel pagination json data with some additional.

Dependencies

  • @angular/core
  • @angular/common
  • bootstrap 4

Installation

npm i @verzth/ngx-bootstrap-pagination

or

npm i --save @verzth/ngx-bootstrap-pagination

How to Use:

  1. Add NgxBootstrapPaginationModule in your app module imports.

    @NgModule({
    .....
     imports: [
       ...
       NgxBootstrapPaginationModule
       ...
     ]
    .....
    })
    export class YourModule {}
    
  2. Use component ngx-bootstrap-pagination to implement the module.

  3. Provide callback for action where page changed, just put the function in event binding pageChange, don't forget to add $event on first parameter.

  4. Provide json data list in [(data)] property/event binding (Two-way binding).

Sample

<ngx-bootstrap-pagination [(data)]="list" (pageChange)="pageChange($event)" (perPageChange)="perPageChange($event)" [selectPerPage]="true|false" [selectPerPageValues]="[]" [inputPage]="true|false"></ngx-bootstrap-pagination>
Data Config Format:
 {
     current_page: number,
     first_page_url: string,
     from: number,
     last_page: number,
     last_page_url: string,
     next_page_url: string,
     path: string,
     per_page: number,
     prev_page_url: string,
     to: number,
     total: number
 }

Keywords

FAQs

Last updated on 29 Jan 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc