{"id":24376010,"url":"https://github.com/betaweb/inputtags-jquery-plugin","last_synced_at":"2025-04-10T19:32:04.928Z","repository":{"id":35358641,"uuid":"39621351","full_name":"betaWeb/inputTags-jQuery-plugin","owner":"betaWeb","description":null,"archived":false,"fork":false,"pushed_at":"2022-02-23T16:15:45.000Z","size":708,"stargazers_count":42,"open_issues_count":3,"forks_count":19,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T17:02:16.582Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://betaweb.github.io/inputTags-jQuery-plugin/","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/betaWeb.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":"2015-07-24T08:42:44.000Z","updated_at":"2025-03-02T05:18:49.000Z","dependencies_parsed_at":"2022-09-17T12:01:16.146Z","dependency_job_id":null,"html_url":"https://github.com/betaWeb/inputTags-jQuery-plugin","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/betaWeb%2FinputTags-jQuery-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betaWeb%2FinputTags-jQuery-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betaWeb%2FinputTags-jQuery-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betaWeb%2FinputTags-jQuery-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/betaWeb","download_url":"https://codeload.github.com/betaWeb/inputTags-jQuery-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248281395,"owners_count":21077423,"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":"2025-01-19T05:59:01.155Z","updated_at":"2025-04-10T19:32:04.879Z","avatar_url":"https://github.com/betaWeb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# inputTags.js\n\n## Presentation\n[inputTags.js](http://betaweb.github.io/inputTags-jQuery-plugin/) is a simple jQuery plugin allowing to add, edit or remove tags in a tags list.\n\n## Installation\nMake sure you include the script after the jQuery library.\n```html\n\u003cscript src=\"http://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"/path/to/inputTags.jquery.js\"\u003e\u003c/script\u003e\n```\n\n## Getting started\nSetting up [inputTags.js](http://betaweb.github.io/inputTags-jQuery-plugin/) is very easy. You just have to add this few lines below and that's it !\n\n**HTML**:\n\n```html\n\u003cinput type=\"text\" id=\"tags\" /\u003e\n```\n\n**JS**:\n```js\n$('#tags').inputTags();\n```\n\n\n## Basic usage\n\n**Initialize plugin with custom tags**\nAllows you to add custom tags on plugin initialization.\n```js\n$('#tags').inputTags({\n  tags: ['jQuery', 'tags', 'plugin'] // Custom tags list\n});\n```\n\n## Advanced usage\n\n**Initialize plugin with tags autocomplete**\nAllows you to add a custom list from which the user can choose one or more tags.\n```js\n$('#tags').inputTags({\n  autocomplete: {\n    values: ['Pellentesque', 'habitant', 'morbi', 'tristique', 'senectus'] // autocomplete list\n  }\n});\n```\n\n### Methods\n**Coming soon...**\n\n### Events\n**Add events listener on plugin initialization**\n```js\n$('#tags').inputTags({\n    init: function($elem) {\n      console.log('Event called on plugin init', $elem);\n    },\n    create: function() {\n      console.log('Event called when an item is created');\n    },\n    update: function() {\n      console.log('Event called when an item is updated');\n    },\n    destroy: function() {\n      console.log('Event called when an item is deleted');\n    },\n    selected: function() {\n      console.log('Event called when an item is selected');\n    },\n    unselected: function() {\n      console.log('Event called when an item is unselected');\n    },\n    change: function($elem) {\n      console.log('Event called on item change', $elem);\n    }\n});\n```\n\u003cbr/\u003e\n**Add events after plugin initialization**\n```js\n$('#tags').inputTags().on('change', function($elem) {\n  console.log('Event called on item change', $elem);\n});\n```\nsame as:\n```js\n$('#tags').inputTags('event', 'change', function($elem) {\n  console.log('Event called on item change', $elem);\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetaweb%2Finputtags-jquery-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbetaweb%2Finputtags-jquery-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetaweb%2Finputtags-jquery-plugin/lists"}