{"id":13341082,"url":"https://github.com/overcastsoftware/wagtailtables","last_synced_at":"2026-01-17T06:14:52.312Z","repository":{"id":72505705,"uuid":"485968630","full_name":"overcastsoftware/wagtailtables","owner":"overcastsoftware","description":"jspreadsheet tables for Wagtail","archived":false,"fork":false,"pushed_at":"2023-11-23T12:24:16.000Z","size":218,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-07-30T21:01:02.546Z","etag":null,"topics":["django","hacktoberfest","python","wagtail"],"latest_commit_sha":null,"homepage":"","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/overcastsoftware.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,"governance":null}},"created_at":"2022-04-26T22:37:31.000Z","updated_at":"2024-05-29T08:49:31.000Z","dependencies_parsed_at":"2023-11-23T13:44:12.617Z","dependency_job_id":null,"html_url":"https://github.com/overcastsoftware/wagtailtables","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/overcastsoftware%2Fwagtailtables","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/overcastsoftware%2Fwagtailtables/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/overcastsoftware%2Fwagtailtables/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/overcastsoftware%2Fwagtailtables/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/overcastsoftware","download_url":"https://codeload.github.com/overcastsoftware/wagtailtables/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221249505,"owners_count":16784953,"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":["django","hacktoberfest","python","wagtail"],"created_at":"2024-07-29T19:25:10.240Z","updated_at":"2026-01-17T06:14:47.286Z","avatar_url":"https://github.com/overcastsoftware.png","language":"JavaScript","readme":"# Wagtail Tables\njspreadsheet tables in Wagtail, edited and customised from the Wagtail admin\n\n## Getting started\n\nAssuming you have a Wagtail project up and running:\n\n`pip install wagtailtables`\n\nAdd `wagtailtables` to your settings.py in the INSTALLED_APPS section, before the core wagtail packages:\n\n```python\nINSTALLED_APPS = [\n    # ...\n    'wagtailtables',\n    # ...\n]\n```\n\nAdd a wagtailtables TableBlock to one of your StreamFields:\n\n```python\nfrom wagtailtables.blocks import TableBlock\n\nclass ContentBlocks(StreamBlock):\n    table_block = TableBlock()\n```\n\nInclude your streamblock in one of your pages\n\n```python\nclass HomePage(Page):\n    body = StreamField(ContentBlocks())\n\n    content_panels = Page.content_panels + [\n        StreamFieldPanel('body'),\n    ]\n```\n\nSimply render your table block as you would render any other block.\n\n```django\n{% load wagtailcore_tags %}\n\n{% block content %}\n\u003cdiv class=\"container-fluid\"\u003e\n    \u003cdiv class=\"row\"\u003e\n        \u003cdiv class=\"col-6\"\u003e\n            \u003ch1\u003e{{self.title}}\u003c/h1\u003e\n            \u003cdiv class=\"excerpt\"\u003e{{self.excerpt|richtext}}\u003c/div\u003e\n        \u003c/div\u003e\n    \u003c/div\u003e\n    {% for block in self.body %}\n        {% include_block block %}\n    {% endfor %}\n\u003c/div\u003e\n{% endblock %}\n```\n\n## Configuration\n\n### Customized toolbar\n`TableBlock` accepts a toolbar argument in addition to the standard `StructBlock` arguments.\n\nThe toolbar is an array of dicts, this is the default:\n```python\nTOOLBAR = [\n    {'type': 'i', 'content': 'format_align_left', 'k': 'text-align', 'v': 'left'},\n    {'type': 'i', 'content': 'format_align_center', 'k':'text-align', 'v':'center'},\n    {'type': 'i', 'content': 'format_align_right', 'k': 'text-align', 'v': 'right'},\n    {'type': 'i', 'content': 'format_bold', 'k': 'font-weight', 'v': '600'},\n    {'type': 'i', 'content': 'format_italic', 'k': 'font-style', 'v': 'italic'},\n    {'type': 'i', 'content': 'border_left', 'k': 'border-left', 'v': '1px solid'},\n    {'type': 'i', 'content': 'border_right', 'k': 'border-right', 'v': '1px solid'},\n    {'type': 'i', 'content': 'border_top', 'k': 'border-top', 'v': '1px solid'},\n]\n\nclass ContentBlocks(StreamBlock):\n    table_block = TableBlock(toolbar=TOOLBAR)\n```\n\n`type` should for now always be `i` for icon, we will provide more types later\n\n`content` defines the icon (from material icons) [click here for all possible keys](https://fonts.google.com/icons?selected=Material+Icons)\n\n`k` means the style that should be applied to the cell\n\n`v` means the value of the style should be applied to the cell\n\n\n## Dependencies\n* This project relies on [Jspreadsheet Community Edition](https://bossanova.uk/jspreadsheet/v4/) for data entry and manipulation. \n\n\n# Release notes\n\n## Version 0.2.2\n* Added support for Wagtail 5\n* Removed support for Wagtail \u003c3\n\n## Version 0.2.1\n* Added support for a customizable toolbar","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovercastsoftware%2Fwagtailtables","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fovercastsoftware%2Fwagtailtables","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovercastsoftware%2Fwagtailtables/lists"}