{"id":22974129,"url":"https://github.com/diversen/auto-complete-tags","last_synced_at":"2025-04-02T07:25:06.635Z","repository":{"id":57187231,"uuid":"425225403","full_name":"diversen/auto-complete-tags","owner":"diversen","description":"Custom input element for auto completing tags","archived":false,"fork":false,"pushed_at":"2021-11-07T14:08:45.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-08T09:17:28.221Z","etag":null,"topics":["auto-complete","auto-complete-tags","javascript"],"latest_commit_sha":null,"homepage":"","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/diversen.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":"2021-11-06T11:22:27.000Z","updated_at":"2022-12-03T14:45:04.000Z","dependencies_parsed_at":"2022-08-28T13:00:24.104Z","dependency_job_id":null,"html_url":"https://github.com/diversen/auto-complete-tags","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/diversen%2Fauto-complete-tags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fauto-complete-tags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fauto-complete-tags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fauto-complete-tags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diversen","download_url":"https://codeload.github.com/diversen/auto-complete-tags/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246771744,"owners_count":20831094,"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":["auto-complete","auto-complete-tags","javascript"],"created_at":"2024-12-15T00:00:12.244Z","updated_at":"2025-04-02T07:25:06.616Z","avatar_url":"https://github.com/diversen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Auto complete tags\n\nA custom web component that will fetch `tag` suggestions from an endpoint: \n\n~~~html\n\n\u003cform method=\"post\" action=\"/post.php\"\u003e\n    \u003cauto-complete-tags\n        data-wait=\"500\" \n        data-url=\"/tags.php?search=\" \n        data-complete-keys=\"Enter\"\n        name=\"tags\" \n        value=\"grey, blue, \"\u003e\n    \u003c/auto-complete-tags\u003e\n    \u003cinput type=\"submit\" name=\"submit\" value=\"send\" /\u003e\n\u003c/form\u003e\n\u003cscript type=\"module\"\u003e\n\n    import {AutoCompleteTags} from 'https://unpkg.com/auto-complete-tags@1.0.4/index.js';\n    customElements.define('auto-complete-tags', AutoCompleteTags);\n\n\u003c/script\u003e\n\n~~~\n\n## Options\n\n`data-wait` specifies how many milli-seconds to wait before fetching data from the endpoint\n\n`data-url` is the endpoint. This should return a JSON array which will build the dropdown selection list.\n\nYour current keyboard typings will be added to the `data-url` and sent to the endpoint\n\n`data-complete-keys` is the keys that will auto-complete the selection. `ArrowUp` and `ArrowDown` are used for moving up and down.\n\n## Styling\n\nIt is an open element, not using shadow-DOM, so you can style it from the outside. Just use a stylesheet. \n\n## Demo\n\nSee: [index.html](index.html)\n\nYou can see the demo here [https://diversen.github.io/auto-complete-tags/](https://diversen.github.io/auto-complete-tags/)\n\n## License\n\nMIT © [Dennis Iversen](https://github.com/diversen)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiversen%2Fauto-complete-tags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiversen%2Fauto-complete-tags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiversen%2Fauto-complete-tags/lists"}