{"id":19312008,"url":"https://github.com/weblineindia/vue-message-dialog-box","last_synced_at":"2026-06-21T14:31:09.434Z","repository":{"id":57396756,"uuid":"275146591","full_name":"weblineindia/Vue-Message-Dialog-Box","owner":"weblineindia","description":"A VueJS based MessageDialog component, used for showing dialog with message. You can change number of buttons on that. You can also hide header and cross icon.","archived":false,"fork":false,"pushed_at":"2023-12-27T08:02:03.000Z","size":179,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-06T09:48:36.168Z","etag":null,"topics":["message-dialog","messagedialog","messagedialog-component","vue","vue-component","vue-component-library","vue-components","vue-message","vue-message-component","vue-message-dialog","vue-plugin","vue-plugins","vuecomponent","vuecomponents","vuejs","vuejs-components","vuejs-library","vuejs-plugin","vuejs-snippets"],"latest_commit_sha":null,"homepage":"https://www.weblineindia.com/communities.html","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/weblineindia.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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-06-26T12:05:40.000Z","updated_at":"2023-12-27T08:01:43.000Z","dependencies_parsed_at":"2024-11-10T00:32:13.091Z","dependency_job_id":"fb27e12e-9502-4a48-81b7-5f6fae3dbf2b","html_url":"https://github.com/weblineindia/Vue-Message-Dialog-Box","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/weblineindia%2FVue-Message-Dialog-Box","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FVue-Message-Dialog-Box/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FVue-Message-Dialog-Box/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FVue-Message-Dialog-Box/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weblineindia","download_url":"https://codeload.github.com/weblineindia/Vue-Message-Dialog-Box/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240415216,"owners_count":19797599,"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":["message-dialog","messagedialog","messagedialog-component","vue","vue-component","vue-component-library","vue-components","vue-message","vue-message-component","vue-message-dialog","vue-plugin","vue-plugins","vuecomponent","vuecomponents","vuejs","vuejs-components","vuejs-library","vuejs-plugin","vuejs-snippets"],"created_at":"2024-11-10T00:32:06.601Z","updated_at":"2026-06-21T14:31:09.388Z","avatar_url":"https://github.com/weblineindia.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-message-dialog component\n\n\u003e A Vue.js MessageDialog component is used for showing dialog with message.  \n\u003e You can change number of buttons on that .\n\u003e You can also hide header and cross icon.\n\n## Table of contents\n\n- [Browser Support](#browser-support)\n- [Demo](#demo)\n- [Getting started](#getting-started)\n- [Import styles](#import-styles)\n- [Usage](#usage)\n- [Available Props](#available-props)\n- [Methods](#methods)\n- [Want to Contribute?](#want-to-contribute)\n- [Need Help / Support?](#need-help)\n- [Collection of Other Components](#collection-of-components)\n- [Changelog](#changelog)\n- [Credits](#credits)\n- [License](#license)\n\n## Browser Support\n\n| ![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/src/safari/safari_48x48.png) | ![Edge](https://raw.github.com/alrra/browser-logos/master/src/edge/edge_48x48.png) | ![IE](https://raw.github.com/alrra/browser-logos/master/src/archive/internet-explorer_9-11/internet-explorer_9-11_48x48.png) |\n| ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |\n| 83.0 ✔                                                                                   | 77.0 ✔                                                                                      | 13.1.1 ✔                                                                                 | 83.0 ✔                                                                             | 11.9 ✔                                                                                                                       |\n\n## Demo\n\n[![](modaldialog.gif)](https://github.com/weblineindia/Vue-Message-Dialog-Box/modaldialog.gif)\n\n## Getting started\n\n```bash\nyarn add vue-weblineindia-message-dialog-box\n\n# or use npm\n\nnpm install vue-weblineindia-message-dialog-box\n```\n\n## Usage\n\n```html\n\u003ctemplate\u003e\n  \u003cdiv id=\"app\"\u003e\n    \u003cbutton @click=\"onShowModal\"\u003eShow Modal\u003c/button\u003e\n    \u003cAlertBox\n      :id=\"'alertbox'\"\n      :name=\"'alertbox'\"\n      :visible=\"isShowErrorInModal\"\n      :content=\"'Enter here your content'\"\n      :buttons=\"alertButtons\"\n      :show-header=\"true\"\n      :header-content=\"'Enter here your header content'\"\n      :closable=\"true\"\n      :no-of-button=\"3\"\n      :index=\"1\"\n      @onButtonClick=\"onClickButton\"\n      @close=\"onCrossClick\"\n      @hide=\"onHideMessageBox\"\n    /\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n```\n\n```js\nimport AlertBox from \"vue-weblineindia-message-dialog-box\";\nexport default {\n  components: {\n    AlertBox\n  },\n  data() {\n    return {\n      alertButtons: [\n        { id: 0, title: \"Yes\" },\n        { id: 1, title: \"No\" },\n        { id: 1, title: \"Cancel\" }\n      ],\n      isShowErrorInModal: false\n    };\n  },\n  methods: {\n    onShowModal() {\n      this.isShowErrorInModal = true;\n    },\n    onClickButton(value) {\n      this.isShowErrorInModal = false;\n      switch (value.title) {\n        case \"Yes\":\n          // do something on Yes button\n          break;\n        case \"No\":\n          // do something on No button\n          break;\n        case \"Cancel\":\n          // do something on Cancel button\n          break;\n      }\n    },\n    onCrossClick() {\n      this.isShowErrorInModal = false;\n    },\n    onHideMessageBox() {\n      this.isShowErrorInModal = false;\n    }\n  }\n};\n```\n\n#### Available Props\n\n| Prop            | Data Type | Default | Description                                                                      |\n| --------------- | --------- | ------- | -------------------------------------------------------------------------------- |\n| `id`            | string    |         | id of the component                                                              |\n| `name`          | string    |         | name of the component                                                            |\n| `visible`       | Boolean   | false   | Show/Hide Modal.                                                                 |\n| `content`       | String    |         | Content of the modal                                                             |\n| `buttons`       | Array     | []      | Buttons objects to contain the button label, button click event, no buttons etc. |\n| `showHeader`    | boolean   | false   | To hide or show the header of the component.                                     |\n| `headerContent` | String    |         | header Content of the modal.                                                     |\n| `closable`      | Boolean   | false   | Adds a close icon to the header to hide the dialog.                              |\n| `noOfButton`    | Number    | 0       | number of button on modal.                                                       |\n| `index`         | Number    | 0       | index of the component                                                           |\n| `value`         | String    |         | value of the component                                                           |\n\n#### Methods\n\n| Name            | Description                           | Value |\n| --------------- | ------------------------------------- | ----- |\n| `onButtonClick` | Emitted when the button click         | Event |\n| `close`         | Emitted when click on the close modal | Event |\n| `hide`          | Emitted when input is clicked         | Event |\n\n## Want to Contribute?\n\n- Created something awesome, made this code better, added some functionality, or whatever (this is the hardest part).\n- [Fork it](http://help.github.com/forking/).\n- Create new branch to contribute your changes.\n- Commit all your changes to your branch.\n- Submit a [pull request](http://help.github.com/pull-requests/).\n\n---\n\n## Need Help?\n\nWe also provide a free, basic support for all users who want to use this VueJS modal dialog in their software project. In case you want to customize this modal dialog to suit your development needs, then feel free to contact our [VueJS developers](https://www.weblineindia.com/hire-vuejs-developer.html).\n\n---\n\n## Collection of Components\n\nWe have built many other components and free resources for software development in various programming languages. Kindly click here to view our [Free Resources for Software Development](https://www.weblineindia.com/communities.html).\n\n---\n\n## Changelog\n\nDetailed changes for each release are documented in [CHANGELOG.md](./CHANGELOG.md).\n\n## Credits\n\nvue-weblineindia-message-dialog-box is inspired by [bootstrap-vue](https://bootstrap-vue.org/docs/components/modal).\n\n## License\n\n[MIT](LICENSE)\n\n[mit]: https://github.com/weblineindia/Vue-Message-Dialog-Box/blob/master/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweblineindia%2Fvue-message-dialog-box","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweblineindia%2Fvue-message-dialog-box","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweblineindia%2Fvue-message-dialog-box/lists"}