{"id":16143361,"url":"https://github.com/midzer/longlist","last_synced_at":"2025-04-06T19:25:20.280Z","repository":{"id":116030448,"uuid":"53522921","full_name":"midzer/longlist","owner":"midzer","description":"A Minimalist JavaScript List Pager (ease navigation of long lists)","archived":false,"fork":false,"pushed_at":"2016-07-07T08:17:00.000Z","size":31,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-13T01:31:04.438Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://midzer.github.io/longlist","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/midzer.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-03-09T18:49:59.000Z","updated_at":"2020-10-15T10:53:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"ce5fced3-1aa8-4bf9-8df8-a476405351a9","html_url":"https://github.com/midzer/longlist","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/midzer%2Flonglist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/midzer%2Flonglist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/midzer%2Flonglist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/midzer%2Flonglist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/midzer","download_url":"https://codeload.github.com/midzer/longlist/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247537116,"owners_count":20954887,"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-10T00:08:59.795Z","updated_at":"2025-04-06T19:25:20.263Z","avatar_url":"https://github.com/midzer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# longlist - A Minimalist JavaScript List Pager\n\nInspired and forked from https://github.com/jekor/longtable and modified for lists.\n\n## Features\n\n* paging in unordered `\u003cul\u003e` and ordered `\u003col\u003e` lists\n* minimal code\n* controls rendered inside the list in a `\u003cnav\u003e` dynamically\n* no library dependencies\n\n## How to Use\n\n```JavaScript\nvar yourList = document.getElementById('yourList');\nlonglist(yourList);\n```\n\n## Options\n\n`longlist()` takes an options argument as an optional second argument. The options are:\n\n* `perPage`: how many rows to display per page (default: 10)\n* `startPage`: which page to display initially (default: 1)\n* `maxPageLinks`: how many page navigation links to display (default: 9)\n\nLonglist will display fewer than `maxPageLinks` page navigation links if there are fewer pages. For best results, use an odd numbered `maxPageLinks` greater than equal to 3.\n\n```JavaScript\nlonglist(yourList, {perPage: 20, maxPageLinks: 7});\n```\n\n## Functions\n\n* `gotoPage(n)` - jump to the given page number\n\n```JavaScript\nyourList.gotoPage(3);\n```\n\n## Events\n\n* `longlist.pageChange` - triggered when the page changes (passes the page number)\n\n## Notes\n\n* Items to be paged must be children of `\u003cul\u003e` or `\u003col\u003e`.\n* Does not support adding/removing list items.\n\n## Unsupported Browsers\n\n* Internet Explorer \u003c= 9\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmidzer%2Flonglist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmidzer%2Flonglist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmidzer%2Flonglist/lists"}