Custom Elegant Modal Dialog Component – Eagle Modal

Description:

Eagle Modal is a Vue.js component to create customizable, dynamic, flexible, and pretty nice & clean modal windows & dialog boxes on the applications.

How to use it:

1. Install the package and import & register the Eagle Modal module.

import {EagleModal} from 'vue-eagle-modal' 
Vue.use(EagleModal);

2. Create a basic modal window.

<template>
  <eModal v-model='modal' ref='modal'></eModal>
</template>
<script>
  export default {
    components: {eModal},
    data(){
      return {
        modal:{
          title: 'Modal Title',
          items: [
            {
              label: 'Test',
              type:'text',
              name: 'e1',
              value: 'test'
            }
          ],
        }
      }
    },
    mounted(){
      this.$refs.modal.open();
    },
  }
</script>

3. Or create an alert dialog.

mounted(){
  this.$modals.alert({
    title: 'Custom Alert',
    text: "Alert Text",
  }).open();
}

Download Details:

Author: danialdezfouli

Live Demo: eagle-modal-dialog

Download Link: https://github.com/danialdezfouli/vue-eagle-modal/archive/master.zip

Official Website: https://github.com/danialdezfouli/vue-eagle-modal

Install & Download:

# NPM
$ npm install vue-eagle-modal --save

You Might Be Interested In:

Add Comment