{"id":21893721,"url":"https://github.com/micc83/restable","last_synced_at":"2025-06-22T15:37:00.766Z","repository":{"id":11981186,"uuid":"14555930","full_name":"micc83/ReStable","owner":"micc83","description":"🌈 jQuery plugin that makes tables responsive converting them to HTML lists on small viewports.","archived":false,"fork":false,"pushed_at":"2022-03-05T11:22:00.000Z","size":30,"stargazers_count":190,"open_issues_count":0,"forks_count":43,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-06-18T15:07:07.837Z","etag":null,"topics":["jquery-plugin","jquery-restable","responsive","table"],"latest_commit_sha":null,"homepage":"https://micc83.github.io/ReStable/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/micc83.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-11-20T12:29:41.000Z","updated_at":"2025-03-15T20:58:52.000Z","dependencies_parsed_at":"2022-09-08T03:40:43.638Z","dependency_job_id":null,"html_url":"https://github.com/micc83/ReStable","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/micc83/ReStable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micc83%2FReStable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micc83%2FReStable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micc83%2FReStable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micc83%2FReStable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/micc83","download_url":"https://codeload.github.com/micc83/ReStable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micc83%2FReStable/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261315938,"owners_count":23140366,"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":["jquery-plugin","jquery-restable","responsive","table"],"created_at":"2024-11-28T13:16:23.727Z","updated_at":"2025-06-22T15:36:55.752Z","avatar_url":"https://github.com/micc83.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct.svg)](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)\n\n\njQuery ReStable 0.1.2\n========\n\n**jQuery ReStable** is a very simple and lightweight (~1Kb) jQuery plugin that make tables responsive making them collapse into ul lists.You can find some examples in the included demo.\n\nTo use it you just have to include jQuery and a copy of the plugin in your head or footer:\n\n```html\n\u003cscript type=\"text/javascript\" src=\"http://code.jquery.com/jquery-latest.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"jquery.restable.min.js\"\u003e\u003c/script\u003e\n\u003clink rel=\"stylesheet\" href=\"jquery.restable.min.css\"\u003e\n```\n\nLet's say this is your table:\n\n```html\n\u003ctable class=\"mytable\"\u003e\n    \u003cthead\u003e\n        \u003ctr\u003e\n            \u003ctd\u003ePeriod\u003c/td\u003e\n            \u003ctd\u003eFull Board\u003c/td\u003e\n            \u003ctd\u003eHalf Board\u003c/td\u003e\n            \u003ctd\u003eBed and Breakfast\u003c/td\u003e\n        \u003c/tr\u003e\n    \u003c/thead\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e01/10/12 - 02/10/12\u003c/td\u003e\n            \u003ctd\u003e20 €\u003c/td\u003e\n            \u003ctd\u003e30 €\u003c/td\u003e\n            \u003ctd\u003e40 €\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e03/10/12 - 04/10/12\u003c/td\u003e\n           \u003ctd\u003e40 €\u003c/td\u003e\n            \u003ctd\u003e50 €\u003c/td\u003e\n            \u003ctd\u003e60 €\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e05/10/12 - 06/10/12\u003c/td\u003e\n            \u003ctd\u003e70 €\u003c/td\u003e\n            \u003ctd\u003e80 €\u003c/td\u003e\n            \u003ctd\u003e90 €\u003c/td\u003e\n        \u003c/tr\u003e\n    \u003c/tbody\u003e\n\u003c/table\u003e\n```\nNow the only thing to do is to trigger the action with:\n\n```js\n$(document).ready(function () {\n    $.ReStable();\n});\n```\n\nThis will target automatically all the tables in the page but you can, off course, target one or more elements with:\n\n```js\n$(document).ready(function () {\n    $('.mytable').ReStable();\n});\n```\n\nIf you need more control here's the plugin settings:\n\n```js\n$('.mytable').ReStable({\n    rowHeaders: true, // Table has row headers?\n    maxWidth: 480, // Size to which the table become responsive\n    keepHtml: false // Keep the html content of cells\n});\n```\n\n## Credits and contacts\n\nReStable has been made by [me](https://github.com/micc83). You can contact me at micc83@gmail.com or [twitter](https://twitter.com/Micc1983) for any issue or feature request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicc83%2Frestable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicc83%2Frestable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicc83%2Frestable/lists"}