{"id":13773918,"url":"https://github.com/tylerecouture/summernote-table-headers","last_synced_at":"2025-05-11T06:31:44.612Z","repository":{"id":96639387,"uuid":"116071397","full_name":"tylerecouture/summernote-table-headers","owner":"tylerecouture","description":"A Summernote plugin that adds a button to the table popover allowing the user to toggle the first row as a table header.","archived":false,"fork":false,"pushed_at":"2020-06-12T17:51:00.000Z","size":10,"stargazers_count":8,"open_issues_count":1,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-02-14T05:35:10.377Z","etag":null,"topics":[],"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/tylerecouture.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}},"created_at":"2018-01-03T00:24:07.000Z","updated_at":"2022-11-15T14:57:10.000Z","dependencies_parsed_at":"2024-02-14T05:44:01.028Z","dependency_job_id":null,"html_url":"https://github.com/tylerecouture/summernote-table-headers","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/tylerecouture%2Fsummernote-table-headers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tylerecouture%2Fsummernote-table-headers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tylerecouture%2Fsummernote-table-headers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tylerecouture%2Fsummernote-table-headers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tylerecouture","download_url":"https://codeload.github.com/tylerecouture/summernote-table-headers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225021911,"owners_count":17408515,"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-08-03T17:01:21.738Z","updated_at":"2024-11-17T09:30:24.100Z","avatar_url":"https://github.com/tylerecouture.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Formatting"],"readme":"# summernote-table-headers\nA [Summernote](http://summernote.org/) plugin that adds a button to the table popover allowing the user to toggle the first row as a table header.\n\n### How it works\nThe plugin creates a `\u003cthead\u003e` element at the top of the table, and moves the top `\u003ctr\u003e` into the header.  It then swaps each of the `\u003ctd\u003e` cells for `\u003cth\u003e` header cells.  Toggle the header off reversese this.\n  \nWhen the summernote table popover is used to create a new column, summernote creates `\u003ctd\u003e` cells within the header.  The pluging detects these changes to the table and converts them to propper `\u003cth\u003e` header cells.\n  \n### Usage\n\n1. Include `summernote-table-headers.js`\n2. Customize the Summernote table popover to include `tableHeaders`\n````\n$(document).ready(function() {\n  $('#summernote').summernote({\n    popover: {\n      table: [\n        ['add', ['addRowDown', 'addRowUp', 'addColLeft', 'addColRight']],\n        ['delete', ['deleteRow', 'deleteCol', 'deleteTable']],\n        ['custom', ['tableHeaders']]\n      ],\n    },\n  });\n});\n````\n\n### Working Example\n\nhttps://rawgit.com/tylerecouture/summernote-table-headers/master/Example/example.html\n\n### To do\n* Add vertical headers\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftylerecouture%2Fsummernote-table-headers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftylerecouture%2Fsummernote-table-headers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftylerecouture%2Fsummernote-table-headers/lists"}