Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.3 KB

README.md

File metadata and controls

41 lines (26 loc) · 1.3 KB

Advanced pagination with Bootstrap

GitHub release (latest by date)

Javascript utility to enhance the use of Bootstrap's pagination as explained in this article.

Advanced pagination with Bootstrap

Usage

  1. Download the source file: bootstrap-advanced-pagination.js

  2. Add it to the page you want to insert the widget, below Bootstrap sources:

    <script type="text/javascript" src="path/to/bootstrap-advanced-pagination.js"></script>
  3. Create the object

    let apb = new BootstrapAdvancedPagination()
  4. Set the Bootstrap version you are using

    apb.setBootstrapVersion("4.0.0")
  5. Call the method to print the pagination widget:

    apb.printWidget(selector, count, page, range)

    For example:

    apb.printWidget('#pagination', 50, 15, 3)