{"id":17189652,"url":"https://github.com/andreivictor/select2-customselectionadapter","last_synced_at":"2025-04-13T19:24:50.555Z","repository":{"id":39778606,"uuid":"184708811","full_name":"andreivictor/select2-customSelectionAdapter","owner":"andreivictor","description":"An implementation of a custom selection adapter for the Select2 plugin (v4) - multiple mode. Displays the selected tags into a separate section, leaving the search box empty.","archived":false,"fork":false,"pushed_at":"2023-03-04T03:40:48.000Z","size":682,"stargazers_count":8,"open_issues_count":8,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T10:07:10.673Z","etag":null,"topics":["select2"],"latest_commit_sha":null,"homepage":"https://andreivictor.github.io/select2-customSelectionAdapter/","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/andreivictor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":"https://www.paypal.com/paypalme/andreivictorbulearca"}},"created_at":"2019-05-03T06:30:03.000Z","updated_at":"2025-03-10T20:27:25.000Z","dependencies_parsed_at":"2023-01-24T02:00:47.506Z","dependency_job_id":null,"html_url":"https://github.com/andreivictor/select2-customSelectionAdapter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreivictor%2Fselect2-customSelectionAdapter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreivictor%2Fselect2-customSelectionAdapter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreivictor%2Fselect2-customSelectionAdapter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreivictor%2Fselect2-customSelectionAdapter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreivictor","download_url":"https://codeload.github.com/andreivictor/select2-customSelectionAdapter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248766794,"owners_count":21158322,"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":["select2"],"created_at":"2024-10-15T01:12:09.485Z","updated_at":"2025-04-13T19:24:50.535Z","avatar_url":"https://github.com/andreivictor.png","language":"JavaScript","funding_links":["https://www.paypal.com/paypalme/andreivictorbulearca"],"categories":[],"sub_categories":[],"readme":"# select2-customSelectionAdapter\nAn implementation of a custom selection adapter for the Select2 plugin (v4) - multiple mode. Displays the selected tags into a separate section, leaving the search box empty.\n\n![img](https://imgur.com/trAkGul.png)\n\n## Demo ##\n\nhttps://andreivictor.github.io/select2-customSelectionAdapter/. \n\n\n## Usage ##\nInitialize the select2 plugin with the `selectionAdapter` option. \n\n```javascript\nvar CustomSelectionAdapter = $.fn.select2.amd.require(\"select2/selection/customSelectionAdapter\");\n\n$(\"select\").select2({\n    // options \n    selectionAdapter: CustomSelectionAdapter\n});\n```\n\n## Setup ##\n\nInclude the script after Select2 main javascript file:\n```html\n\u003cscript src=\"select2.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"select2.customSelectionAdapter.min.js\"\u003e\u003c/script\u003e\n```\n\nInclude the css file:\n```html\n\u003clink rel=\"stylesheet\" href=\"select2.customSelectionAdapter.css\" /\u003e\n```\n\n## `selectionContainer` Option ##\nBy default, the tags are added immediately after the `select2` container.\nYou can use the `selectionContainer` option to add them somewhere else in the page.\n\n```javascript\nvar CustomSelectionAdapter = $.fn.select2.amd.require(\"select2/selection/customSelectionAdapter\");\n\n$(\"select\").select2({\n    // options \n    selectionAdapter: CustomSelectionAdapter,\n    selectionContainer: $('.foo')\n});\n```\n\n## Select2 compatibility ##\n- Select2 4+\n\n## Copyright and license ##\nThe license is available within the repository in the [LICENSE](LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreivictor%2Fselect2-customselectionadapter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreivictor%2Fselect2-customselectionadapter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreivictor%2Fselect2-customselectionadapter/lists"}