{"id":18880514,"url":"https://github.com/onewaytech/vue-select2-component","last_synced_at":"2025-09-20T08:12:59.868Z","repository":{"id":65379084,"uuid":"77598691","full_name":"OneWayTech/vue-select2-component","owner":"OneWayTech","description":"Select2 encapsulation for Vue 1.x","archived":false,"fork":false,"pushed_at":"2017-04-10T03:08:04.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-09T14:45:34.612Z","etag":null,"topics":["select2","vue"],"latest_commit_sha":null,"homepage":null,"language":"Vue","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/OneWayTech.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":"2016-12-29T08:59:27.000Z","updated_at":"2018-08-30T11:08:24.000Z","dependencies_parsed_at":"2023-01-20T08:25:13.958Z","dependency_job_id":null,"html_url":"https://github.com/OneWayTech/vue-select2-component","commit_stats":null,"previous_names":["kenberkeley/vue-select2-component"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/OneWayTech/vue-select2-component","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneWayTech%2Fvue-select2-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneWayTech%2Fvue-select2-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneWayTech%2Fvue-select2-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneWayTech%2Fvue-select2-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OneWayTech","download_url":"https://codeload.github.com/OneWayTech/vue-select2-component/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneWayTech%2Fvue-select2-component/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276064355,"owners_count":25578999,"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","status":"online","status_checked_at":"2025-09-20T02:00:10.207Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","vue"],"created_at":"2024-11-08T06:44:16.398Z","updated_at":"2025-09-20T08:12:59.845Z","avatar_url":"https://github.com/OneWayTech.png","language":"Vue","readme":"# Vue Select2 Component\r\n\r\n[![npm version][npm-v-img]][npm-url]\r\n[![npm download][npm-dl-img]][npm-url]\r\n\r\n\u003e Intellectual property of [Oneway.mobi](http://www.oneway.mobi/)\r\n\r\n#### Requirement\r\n\r\n* Vue 1.x\r\n* jQuery ( available globally )\r\n* [Select2](https://github.com/select2/select2)\r\n\r\n#### Installation\r\n\r\n`npm i vue-select2-component -S`\r\n\r\n\u003e alternatively: `\u003cscript src=\"dist/vue-select2-component.min.js\"\u003e\u003c/script\u003e`  \r\n\u003e which exposes **`VueSelect2`** as a global variable\r\n\r\n\r\n#### Example\r\nSee [here](https://onewaytech.github.io/vue-select2-component/example.html), source in [`example.html`](./example.html)\r\n\u003e I prefer inspecting it with [devtools](https://github.com/vuejs/vue-devtools)\r\n\r\n#### Configuration\r\n\r\n* `@prop {String/String[]} model (.sync!)`, defaults to `''`\r\n* `@prop {String} models (.sync!)`, defaults to `''`\r\n* `@prop {Object[]} options (required!)`, **must** in `[{ value: {String/Number}, text: {String} }]` pattern\r\n* `@prop {Object} config`, defaults to `{}`. Besides the [basic configuration](http://select2.github.io/options.html) of Select2, we have some extra settings:\r\n  * `multiple`: defaults to `undefined` ( Meaning default as a single select )\r\n  * `width`: defaults to `100%`\r\n  * `delimiter`: defaults to `,` ( Only for multiple select )\r\n  * `showValInText`: defaults to `undefined`. If set to `true`, the render result would be:  \r\n```\r\n    \u003cselect\u003e\r\n      \u003coption\u003e(1) Apple\u003c/option\u003e\r\n      \u003coption\u003e(2) Banana\u003c/option\u003e\r\n      ...\r\n    \u003c/select\u003e\r\n```\r\n\r\n#### Build\r\n\r\n`npm run build`\r\n\r\n[npm-url]: https://www.npmjs.com/package/vue-select2-component\r\n[npm-v-img]: http://img.shields.io/npm/v/vue-select2-component.svg\r\n[npm-dl-img]: http://img.shields.io/npm/dm/vue-select2-component.svg\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonewaytech%2Fvue-select2-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonewaytech%2Fvue-select2-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonewaytech%2Fvue-select2-component/lists"}