Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-advance-dialog

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-advance-dialog

VueAdvanceDialog is a flexible vue component. You can easily use this component for your vue or nuxt project. It has many options for customization

  • 0.0.13
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

vue-advance-dialog

Vue Advanced Dialog is a flexible and customizable Vue component. You can easily use this for your Vue or nuxt project.

License

MIT

Installation

npm install --save vue-advance-dialog

Usage

import {VueAdvanceDialog} from 'vue-advance-dialog'

require('vue-advance-dialog/dist/vue-advance-dialog.css')

Vue.use(VueAdvanceDialog)
// on Nuxt.js

components: {
VueAdvanceDialog
},
<vue-advance-dialog id="dialog" toggleTitle="Show Dialog">
    Your content will go here ...
</vue-advance-dialog>

Props

  • id: String default: dialog_ + random number

If you want to add multiple dialogs you have to set a unique id for every dialog. If you use the same id it will conflict in dialog events.

  • toggleTitle: String default: btn btn-primary
  • disabled: Boolean default: false
  • title: String default: ''
  • closeButton: Boolean default: true
  • outsideClickClose: Boolean default: true
  • size: String default: xs
  • position: String default: top-center
  • containerClass: String default: ''
  • contentClass: String default: ''
  • contentHeaderClass: String default: ''
  • contentInnerClass: String default: ''
  • contentFooterClass: String default: ''
  • transition: String default: slide-top

Events

@show

After opening the dialog, the show event will fire. If you want to do something after the modal opens you can do it.

<vue-advance-dialog @show="doSomething">
    Your content will go here ...
</vue-advance-dialog>
methods: {
    doSomething() {
        alert('Dialog is opened')
    },
}
@hide

After closing the dialog, the hide event will fire. If you want to do something after the modal close you can do it.

<vue-advance-dialog @hide="doSomething">
    Your content will go here ...
</vue-advance-dialog>
methods: {
    doSomething() {
        alert('Dialog is closed')
    },
}

Keywords

FAQs

Package last updated on 29 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc