{"id":22546865,"url":"https://github.com/4nkitd/table.js","last_synced_at":"2025-06-28T12:33:50.910Z","repository":{"id":138972818,"uuid":"280410205","full_name":"4nkitd/table.js","owner":"4nkitd","description":"a minimal js lib to provide table search and pagination.","archived":false,"fork":false,"pushed_at":"2020-08-26T12:51:40.000Z","size":34,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-28T08:46:23.876Z","etag":null,"topics":["js-lib","pagination","table"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/4nkitd.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":"2020-07-17T11:45:41.000Z","updated_at":"2024-12-17T12:27:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"ed76adb4-aff6-425f-9551-1e3223428f23","html_url":"https://github.com/4nkitd/table.js","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/4nkitd/table.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4nkitd%2Ftable.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4nkitd%2Ftable.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4nkitd%2Ftable.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4nkitd%2Ftable.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/4nkitd","download_url":"https://codeload.github.com/4nkitd/table.js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4nkitd%2Ftable.js/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262431910,"owners_count":23310137,"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":["js-lib","pagination","table"],"created_at":"2024-12-07T15:09:12.164Z","updated_at":"2025-06-28T12:33:50.874Z","avatar_url":"https://github.com/4nkitd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# table.js\na minimal js lib to provide table search and pagination.\n\n# Usage\n\n**Config**\n\n``` \n{\n      get_rows : function used to select rows to do pagination on\n          If no function is provided, checks for a config.table element and looks for rows in there to page\n \n      box : Empty element that will have page buttons added to it\n          If no config.box is provided, but a config.table is, then the page buttons will be added using the table\n \n      table : table element to be paginated\n          not required if a get_rows function is provided\n \n      rows_per_page : number of rows to display per page\n          default number is 10\n \n      page: page to display\n          default page is 1\n \n      box_mode: \"list\", \"buttons\", or function. determines how the page number buttons are built.\n          \"list\" builds the page index in list format and adds class \"pagination\" to the ul element. Meant for use with bootstrap\n          \"buttons\" builds the page index out of buttons\n          if this field is a function, it will be passed the config object as its only param and assumed to build the page index buttons\n \n      page_options: false or [{text: , value: }, ... ] used to set what the dropdown menu options are available, resets rows_per_page value\n          false prevents the options from being displayed\n          [{text: , value: }, ... ] allows you to customize what values can be chosen, a value of 0 will display all the table's rows.\n          the default setup is\n            [\n                { value: 5,  text: '5'   },\n                { value: 10, text: '10'  },\n                { value: 20, text: '20'  },\n                { value: 50, text: '50'  },\n                { value: 100,text: '100' },\n                { value: 0,  text: 'All' }\n            ]\n \n      active_class: set the class for page buttons to have when active.\n           defaults to \"active\"\n \n      disable: true or false, shows all rows of the table and hides pagination controlls if set to true.\n \n      tail_call: function to be called after paginator is done.\n \n  }\n \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4nkitd%2Ftable.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F4nkitd%2Ftable.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4nkitd%2Ftable.js/lists"}