mirror of
https://github.com/KevinMidboe/vue-js-modal.git
synced 2025-10-29 18:00:20 +00:00
17 lines
443 B
TypeScript
17 lines
443 B
TypeScript
import Vue from "vue";
|
|
import VueJSModal, { VueJSModalOptions } from "../index";
|
|
|
|
Vue.use(VueJSModal);
|
|
Vue.use<VueJSModalOptions>(VueJSModal, {
|
|
componentName: "another-modal-name",
|
|
dialog: false
|
|
});
|
|
|
|
const vm = new Vue({
|
|
template: `<vue-modal name="awesome-modal"></vue-modal>`
|
|
}).$mount("#app");
|
|
|
|
vm.$modal.show("awesome-modal");
|
|
vm.$modal.hide("awesome-modal", { customeEvent: "customEventParam" });
|
|
vm.$modal.toggle("awesome-modal");
|