{"id":21598102,"url":"https://github.com/matfish2/vue-pagination","last_synced_at":"2025-04-11T01:01:46.042Z","repository":{"id":57389733,"uuid":"55355401","full_name":"matfish2/vue-pagination","owner":"matfish2","description":"Vue.js pagination component","archived":false,"fork":false,"pushed_at":"2016-10-03T14:02:29.000Z","size":14,"stargazers_count":7,"open_issues_count":1,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T21:39:54.388Z","etag":null,"topics":["pagination","vue"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/v-pagination","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matfish2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-03T16:07:35.000Z","updated_at":"2020-01-16T07:27:07.000Z","dependencies_parsed_at":"2022-09-02T10:50:09.437Z","dependency_job_id":null,"html_url":"https://github.com/matfish2/vue-pagination","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matfish2%2Fvue-pagination","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matfish2%2Fvue-pagination/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matfish2%2Fvue-pagination/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matfish2%2Fvue-pagination/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matfish2","download_url":"https://codeload.github.com/matfish2/vue-pagination/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247872907,"owners_count":21010335,"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":["pagination","vue"],"created_at":"2024-11-24T18:11:18.109Z","updated_at":"2025-04-11T01:01:46.014Z","avatar_url":"https://github.com/matfish2.png","language":"JavaScript","funding_links":[],"categories":["Awesome Vue.js [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)"],"sub_categories":["Libraries \u0026 Plugins"],"readme":"# Vue Pagination\n\nNote: This package is for use with Vuejs 1.\nFor version 2 please use [vue-pagination-2](https://www.npmjs.com/package/vue-pagination-2) instead.\n\nSimple, generic and non-intrusive pagination component for Vue.js.\nPresentation is based on bootstrap.\n\n- [Dependencies](#dependencies)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Programmatic Manipulation](#programmatic-manipulation)\n- [Computed Properties](#computed-properties)\n\n# Dependencies\n\n* Vue.js (\u003e=1.0). Required.\n* Bootstrap (CSS). Optional.\n\n# Installation\n\n## Option 1\n\nCompile the code using `browserify` with the `stringify` transform\n\n    npm install v-pagination\n\nRequire the script:\n\n    var VuePagination = require('v-pagination');\n\n## Option 2\n\nImport the [compiled standalone file](https://raw.githubusercontent.com/matfish2/vue-pagination/master/dist/vue-pagination.min.js) into your HTML, which will expose a global `VuePagination` variable.\n\n# Usage\n\n[LIVE DEMO](https://jsfiddle.net/matfish2/rnw8jjs3/)\n\n## Register the component\n\n    Vue.use(VuePagination)\n\nHTML:\n\n    \u003cpagination for=\"some-entity\" :records=\"500\"\u003e\u003c/pagination\u003e\n\nprops:\n\n* `for` `string` `required` unique identifier for the component instance.\n* `records` `number` `required` number of records\n* `per-page` `number` `optional` records per page. Default: 25\n* `chunk` `number` `optional` max pages per chunk. Default: 10\n* `count-text` `string` `optional` total records text. Default: '{count} records'\n\nWhen a page is selected an event will be dispatched, using the unique id for the component.\nListen to it and respond accordingly:\n\n      this.$on('vue-pagination::some-entity', function(page) {\n          // display the relevant records using the page param\n      });\n\n# Programmatic Manipulation\n\nTo programmatically set the page apply a `v-ref` identifier to the component and use one of the following methods:\n\n* `setPage(page)`\n* `next()`\n* `prev()`\n* `nextChunk()`\n* `prevChunk()`\n\nAll methods return `true` if the page is legal and was thus set, or `false` otherwise.\n\n# Computed Properties\n\n* `totalPages`\n* `totalChunks`\n* `currentChunk`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatfish2%2Fvue-pagination","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatfish2%2Fvue-pagination","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatfish2%2Fvue-pagination/lists"}