{"id":13780945,"url":"https://github.com/github/task-lists-element","last_synced_at":"2025-05-16T11:06:51.070Z","repository":{"id":38904339,"uuid":"131072895","full_name":"github/task-lists-element","owner":"github","description":"Drag and drop task list items.","archived":false,"fork":false,"pushed_at":"2025-03-05T21:51:12.000Z","size":1055,"stargazers_count":141,"open_issues_count":7,"forks_count":23,"subscribers_count":251,"default_branch":"main","last_synced_at":"2025-05-09T13:04:03.936Z","etag":null,"topics":["custom-elements","web-components"],"latest_commit_sha":null,"homepage":"https://github.github.io/task-lists-element/examples/","language":"TypeScript","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/github.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-04-25T23:05:39.000Z","updated_at":"2025-04-26T15:10:46.000Z","dependencies_parsed_at":"2024-01-16T00:20:11.009Z","dependency_job_id":"86c74c9d-8f7d-45ef-8a19-4d30a3eba389","html_url":"https://github.com/github/task-lists-element","commit_stats":{"total_commits":98,"total_committers":14,"mean_commits":7.0,"dds":0.6836734693877551,"last_synced_commit":"78fff629fcb57cca1841d0899f48581f05c6788b"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Ftask-lists-element","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Ftask-lists-element/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Ftask-lists-element/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Ftask-lists-element/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/github","download_url":"https://codeload.github.com/github/task-lists-element/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254514656,"owners_count":22083813,"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":["custom-elements","web-components"],"created_at":"2024-08-03T18:01:21.384Z","updated_at":"2025-05-16T11:06:48.537Z","avatar_url":"https://github.com/github.png","language":"TypeScript","funding_links":[],"categories":["Element Extensions"],"sub_categories":[],"readme":"# \u0026lt;task-lists\u0026gt; element\n\nDrag and drop task list items.\n\n## Installation\n\n```\n$ npm install --save @github/task-lists-element\n```\n\n## Usage\n\n### Script\n\nImport as a module:\n\n```js\nimport '@github/task-lists-element'\n```\n\nWith a script tag:\n\n```html\n\u003cscript type=\"module\" src=\"./node_modules/@github/task-lists-element/dist/task-lists-element.js\"\u003e\n```\n\n### Markup\n\n```html\n\u003ctask-lists sortable\u003e\n  \u003cul class=\"contains-task-list\"\u003e\n    \u003cli class=\"task-list-item\"\u003e\n      \u003cinput type=\"checkbox\" class=\"task-list-item-checkbox\"\u003e\n      Hubot\n    \u003c/li\u003e\n    \u003cli class=\"task-list-item\"\u003e\n      \u003cinput type=\"checkbox\" class=\"task-list-item-checkbox\"\u003e\n      Bender\n    \u003c/li\u003e\n  \u003c/ul\u003e\n\n  \u003cul class=\"contains-task-list\"\u003e\n    \u003cli class=\"task-list-item\"\u003e\n      \u003cinput type=\"checkbox\" class=\"task-list-item-checkbox\"\u003e\n      BB-8\n    \u003c/li\u003e\n    \u003cli class=\"task-list-item\"\u003e\n      \u003cinput type=\"checkbox\" class=\"task-list-item-checkbox\"\u003e\n      WALL-E\n    \u003c/li\u003e\n  \u003c/ul\u003e\n\u003c/task-lists\u003e\n```\n\n## Events\n\n```js\nconst list = document.querySelector('task-lists')\n\nlist.addEventListener('task-lists-check', function(event) {\n  const {position, checked} = event.detail\n  console.log(position, checked)\n})\n\nlist.addEventListener('task-lists-move', function(event) {\n  const {src, dst} = event.detail\n  console.log(src, dst)\n})\n```\n\n## Browser support\n\nBrowsers without native [custom element support][support] require a [polyfill][].\n\n- Chrome\n- Firefox\n- Safari\n- Microsoft Edge\n\n[support]: https://caniuse.com/#feat=custom-elementsv1\n[polyfill]: https://github.com/webcomponents/custom-elements\n\n## Development\n\n```\nnpm install\nnpm test\n```\n\n## License\n\nDistributed under the MIT license. See LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Ftask-lists-element","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithub%2Ftask-lists-element","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Ftask-lists-element/lists"}