New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

x5-dialog

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

x5-dialog

A lightweight dialog and modal plugin for Vue

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

x5 Dialog (Live Demo)

This is a lightweight dialog plugin for Vue.

:warning: This plugin is in development, so please let me know if you find any errors.

Installation

# npm
npm install x5-dialog --save

Deployment

import x5Dialog from 'x5-dialog'
Vue.use(x5Dialog)

Usage

this.$alert('This is an alert dialog.')
this.$confirm({ title: 'This is a confirm dialog.', text: 'It uses the options format to ste things like title.' })

Options

plugin (Vue.use(x5Dialog, options))

AttributeTypeDefaultDescription
zIndexNumber200z-index style for plugin

$modal (options) (returns Promise)

Modal

AttributeTypeDefaultDescription
onCloseFunction--Callback for when the message is closed
overlayBooleantrueDarken page behind background
permanentBooleanfalseOnly allow closing the window via provided buttons
widthNumber500Maximum window width
classString--Extra classes for the window
styleString--Extra styles for the window

$alert, $confirm, $prompt (options) (returns Promise)

Alert Confirm Prompt

:information_source: These attributes and options extend $modal's (above)

AttributeTypeDefaultDescription
textString--Message text (required)
titleString--Dialog header bar title
onCloseFunction--Callback for when the message is closed
onCancelFunction--Callback for cancelling the Dialog
onOKFunction--Callback for confirming the Dialog
labelOKStringOKOK button label
labelCancelStringCancelCancel button label
rulesArray[]Array of functions to test prompt input against

Contributing

Please read CONTRIBUTING.md for the process for submitting pull requests.

Authors

  • Keagan Chisnall - xon52

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

Inspired by:

Keywords

FAQs

Package last updated on 25 Feb 2020

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