Skip to content
This repository has been archived by the owner on Feb 10, 2022. It is now read-only.

danialdezfouli/vue-eagle-modal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-eagle-modal

Document
Demos

Project setup

npm install vue-eagle-modal

Register Plugin

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

Usage

let m = this.$modals.add({
    title: 'Title',
    theme: 'osx', // || mojave
    items: [
    	{
    		label: 'Username',
    		name: 'username',
    		type: 'text',
    		value: 'Daniel',
    	},
    	{
    		label: 'Bio',
    		name: 'bio',
    		type: 'textarea',
    		value: 'web developer',
    	}
    ],
  });
  m.open();
  
  m.onsave( (m) => {
  	m.loading();
  	setTimeout(() => {
	  	console.log(m.formData())
	  	console.log(m.getItems())
  		m.loaded()
	},500)
  })

  m.onreload( () => {
  	console.log('Reloaded')
  })

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

You can use this package in your projects : )


Design and Developed by Danial Dezfouli

Email eagledesign.ir@gmail.com

About

deprecated - modal form for Vue 2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published