{"id":16085735,"url":"https://github.com/infinitypaul/simple-vuejs-modal","last_synced_at":"2025-04-05T13:42:20.341Z","repository":{"id":116899885,"uuid":"293856389","full_name":"infinitypaul/simple-vuejs-modal","owner":"infinitypaul","description":"Simple And Flexible VueJs Modal","archived":false,"fork":false,"pushed_at":"2020-09-22T21:06:47.000Z","size":130,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-11T09:50:07.103Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/infinitypaul.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-08T15:46:50.000Z","updated_at":"2020-09-22T21:06:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"4643220f-1717-4476-abae-014aea5779f7","html_url":"https://github.com/infinitypaul/simple-vuejs-modal","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/infinitypaul%2Fsimple-vuejs-modal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinitypaul%2Fsimple-vuejs-modal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinitypaul%2Fsimple-vuejs-modal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinitypaul%2Fsimple-vuejs-modal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/infinitypaul","download_url":"https://codeload.github.com/infinitypaul/simple-vuejs-modal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247345713,"owners_count":20924098,"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":"2024-10-09T13:09:11.917Z","updated_at":"2025-04-05T13:42:20.313Z","avatar_url":"https://github.com/infinitypaul.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VueJS Modal\n\n  Simple And Flexible VueJs Modal\n  \n## Getting Started\n\n```\n// installation via npm\nnpm i -S simple-vuejs-modal\n\n// or\n\n// installation via yarn\nyarn add simple-vuejs-modal\n```\n\n## Usage\n\n\n#### SignIn.vue\n```vue\n\u003ctemplate\u003e\n  \u003cVueModal name=\"signIn\"\u003e\n    \u003ctemplate slot=\"header\"\u003e\n      Head\n    \u003c/template\u003e\n    \u003ctemplate slot=\"body\"\u003e\n      Body\n    \u003c/template\u003e\n  \u003c/VueModal\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nimport VueModal from '@/simple-vuejs-modal.vue';\n\nexport default {\nname: \"SignIn\",\n  components:{\n    VueModal\n  }\n}\n\u003c/script\u003e\n```\n\n#### Home.vue\n\n```vue\n\u003ctemplate\u003e\n  \u003cdiv\u003e\n    \u003cSignIn /\u003e\n\n    \u003ca href=\"#\" @click.prevent=\"$modal.show('signIn')\"\u003eOpen Modal\u003c/a\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nimport SignIn from './SignIn';\n\nexport default {\nname: \"Home\",\n  components:{\n    SignIn\n  }\n}\n\u003c/script\u003e\n\n\u003cstyle scoped\u003e\n\n\u003c/style\u003e\n```\n\n##### Open Modal\n\n```\n//In Script\nthis.$modal.show('signIn')\n\nIn Templete\n$modal.show('signIn')\n```\n\n##### Close Modal\n\n```\nthis.$modal.hide('signIn')\n```\n\n##### Dynamic modals \n\n```\nthis.$modal.show(componentName', Properties)\n\nFor Example : this.$modal.show('signIn', {name: \"Paul\"})\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfinitypaul%2Fsimple-vuejs-modal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfinitypaul%2Fsimple-vuejs-modal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfinitypaul%2Fsimple-vuejs-modal/lists"}