{"id":26360947,"url":"https://github.com/luongvm/vue2-bootstrap-modal","last_synced_at":"2025-12-16T11:55:11.576Z","repository":{"id":13533473,"uuid":"74696319","full_name":"luongvm/vue2-bootstrap-modal","owner":"luongvm","description":"Vue 2.x Bootstrap-themed Modal","archived":false,"fork":false,"pushed_at":"2022-12-06T21:26:37.000Z","size":766,"stargazers_count":29,"open_issues_count":4,"forks_count":14,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-14T12:29:22.972Z","etag":null,"topics":["bootstrap","modal","vue2"],"latest_commit_sha":null,"homepage":null,"language":"Vue","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/luongvm.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":null,"security":null,"support":null}},"created_at":"2016-11-24T18:20:15.000Z","updated_at":"2024-03-29T03:45:13.000Z","dependencies_parsed_at":"2023-01-11T20:20:58.798Z","dependency_job_id":null,"html_url":"https://github.com/luongvm/vue2-bootstrap-modal","commit_stats":null,"previous_names":["luongvm/vue2-bootstrap-modal","joturako/vue2-bootstrap-modal"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luongvm%2Fvue2-bootstrap-modal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luongvm%2Fvue2-bootstrap-modal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luongvm%2Fvue2-bootstrap-modal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luongvm%2Fvue2-bootstrap-modal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luongvm","download_url":"https://codeload.github.com/luongvm/vue2-bootstrap-modal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248752372,"owners_count":21156079,"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":["bootstrap","modal","vue2"],"created_at":"2025-03-16T17:18:57.062Z","updated_at":"2025-12-16T11:55:11.571Z","avatar_url":"https://github.com/luongvm.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# vue2-bootstrap-modal\n\u003e Bootstrap Modal Component for Vue 2.x\n\n\u003e Updated package to exclude bootstrap css and js, you need to install bootstrap-loader\n\n[![NPM](https://nodei.co/npm/vue2-bootstrap-modal.png?downloads=true)](https://nodei.co/npm/vue2-bootstrap-modal/)\n\n## Install\n\n``` bash\n    npm install vue2-bootstrap-modal --save\n```\n\n## Usage\nRequire the component (globally or in another component)\n```\ncomponents: {\n    'bootstrap-modal': require('vue2-bootstrap-modal')\n},\n```\nThen in your template:\n```\n\u003cdiv\u003e\n...\n\u003cbootstrap-modal ref=\"theModal\" :need-header=\"false\" :need-footer=\"false\" :size=\"'large'\" :opened=\"myOpenFunc\"\u003e\n\u003cdiv slot=\"title\"\u003e\n    Your title here\n\u003c/div\u003e\n\u003cdiv slot=\"body\"\u003e\n    Your body here\n\u003c/div\u003e\n\u003cdiv slot=\"footer\"\u003e\n    Your footer here\n\u003c/div\u003e\n\u003c/bootstrap-modal\u003e\n...\n\u003c/div\u003e\n```\nFinally call `theModal.open()` and `theModal.close()` whenever you need.\n## Documentation\n\nModal functions and callbacks are exposed through the **ref** variable\n\n### open() `function`\nOpens the modal\n\n### close() `function`\nCloses the modal\n\n### opened `callback`\nCalled after modal is opened. Pass your own method to be called\n\n### closed `callback`\nCalled after modal is closed. Pass your own method to be called\n\n### need-header `boolean`\nTrue if you need to show the header\n\nDefault value is `true`\n\n### need-footer `boolean`\nTrue if you need to show the footer\n\nDefault value is `true`\n\n### size `string`\n\nUse one of these values to change the modal size\n\nValue | Bootstrap class\n--|--\n`small` | `modal-sm`\n`medium` | `modal-md`\n`large` | `modal-lg`\n`full` | `modal-full`\n\nDefault value is empty\n\n## Example\n\nSee ```index.html``` for example use\n\n\n## To-do\nExpose configuration, like backdrop darkness value\n\n## Contributing\nContributions are welcome!\n\n## Release History\n\n0.2.0 Updated After Vue2 EOL, fix CVEs, and simplify the repo\n\n0.1.15 Last old version\n\n0.1.12 Add `opened` and `closed` event callbacks, correct examples\n\n0.1.11 Add `full` value for `size` props\n\n0.1.7 Add `size` props\n\n0.1.4 Add `needFooter` and `needHeader` props\n\n0.1.0 Initial release\n\n## Build Setup\n\n``` bash\n# install dependencies\nnpm install\n\n# serve with hot reload at localhost:8080\nnpm run dev\n\n# build for production with minification\nnpm run build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluongvm%2Fvue2-bootstrap-modal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluongvm%2Fvue2-bootstrap-modal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluongvm%2Fvue2-bootstrap-modal/lists"}