{"id":15638792,"url":"https://github.com/markbates/jquery-bootstrap-pagination","last_synced_at":"2025-04-09T14:15:21.783Z","repository":{"id":5779381,"uuid":"6993228","full_name":"markbates/jquery-bootstrap-pagination","owner":"markbates","description":null,"archived":false,"fork":false,"pushed_at":"2016-04-01T10:48:04.000Z","size":83,"stargazers_count":90,"open_issues_count":7,"forks_count":39,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-02T08:39:06.103Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"Teun/thenBy.js","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/markbates.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-12-04T02:38:14.000Z","updated_at":"2024-08-17T13:49:22.000Z","dependencies_parsed_at":"2022-09-02T15:23:17.824Z","dependency_job_id":null,"html_url":"https://github.com/markbates/jquery-bootstrap-pagination","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markbates%2Fjquery-bootstrap-pagination","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markbates%2Fjquery-bootstrap-pagination/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markbates%2Fjquery-bootstrap-pagination/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markbates%2Fjquery-bootstrap-pagination/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markbates","download_url":"https://codeload.github.com/markbates/jquery-bootstrap-pagination/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248054193,"owners_count":21039952,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T11:23:13.149Z","updated_at":"2025-04-09T14:15:21.758Z","avatar_url":"https://github.com/markbates.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jQuery Bootstrap Pagination\n\nA simple, full-featured, pagination system for [jQuery](http://jquery.com/) that outputs [Twitter Bootstrap](http://twitter.github.com/bootstrap/) marked up pagination links. Of course, there's no reason you need to use this with Bootstrap, the HTML output is very clean.\n\n## Installation\n\nThe library can be used in CoffeeScript, JavaScript, and Rails applications very easily.\n\n### Standalone\n\n#### CoffeeScript\n\nUse the `src/jquery-bootstrap-pagination.coffee` file.\n\n#### JavaScript\n\nUse the `vendor/assets/javascripts/jquery-bootstrap-pagination.js` file. This file is auto generated from the CoffeeScript file.\n\n### Rails 3.x\n\nAdd this line to your application's Gemfile:\n\n``` ruby\ngem 'jquery-bootstrap-pagination'\n```\n\nAnd then execute:\n\n```\n$ bundle\n```\n\nAdd it to your `application.js` file:\n\n``` javascript\n//= require jquery-bootstrap-pagination\n```\n\n## Usage\n\n### CoffeeScript\n``` coffeescript\n# Basic usage:\n$(\"#my-pagination-section\").pagination()\n\n# With options:\n$(\"#my-pagination-section\").pagination\n  total_pages: 10\n  current_page: 2\n  callback: (event, page) -\u003e\n    alert(\"Page #{page} was clicked!\")\n\n# Retrieve the underlying PaginationView:\n$(\"#my-pagination-section\").data(\"paginationView\")\n```\n\n### JavaScript:\n``` javascript\n// Basic usage:\n$(\"#my-pagination-section\").pagination();\n\n// With options:\n$(\"#my-pagination-section\").pagination({\n  total_pages: 10,\n  current_page: 2,\n  callback: function(event, page) {\n    return alert(\"Page \" + page + \" was clicked!\");\n  }\n});\n\n// Retrieve the underlying PaginationView:\n$(\"#my-pagination-section\").data(\"paginationView\");\n```\n\n### Options and Defaults:\n``` coffeescript\n# what is the current page:\ncurrent_page: 1\n# how many pages are there total:\ntotal_pages: 1\n# change text of the 'next' link,\n# set to false for no next link:\nnext: \"\u0026gt;\"\n# change text of the 'previous' link,\n# set to false for no previous link:\nprev: \"\u0026lt;\"\n# change text of the 'first' link,\n# set to false for no first link:\nfirst: false\n# change text of the 'last' link,\n# set to false for no last link:\nlast: false\n# how many links before truncation happens:\ndisplay_max: 8\n# render nothing if there is only 1 page:\nignore_single_page: true\n# disable turbolinks:\nno_turbolink: false\n```\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Write/Run tests (`bundle exec rake`)\n4. Commit your changes (`git commit -am 'Add some feature'`)\n5. Push to the branch (`git push origin my-new-feature`)\n6. Create new Pull Request\n\n## Contributors\n\n* Mark Bates\n* Eric Wollesen\n* Clinton Blackburn","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkbates%2Fjquery-bootstrap-pagination","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkbates%2Fjquery-bootstrap-pagination","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkbates%2Fjquery-bootstrap-pagination/lists"}