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

vuetify-confirm-box

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vuetify-confirm-box

This plugin make the vuetify custom confirm prompts easier and fluent

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by800%
Maintainers
1
Weekly downloads
 
Created
Source

Vuetify Confirm Box

Installation

Install the package through npm

npm install vuetify-confirm-box

After the package installation is done inside plugins/vuetify.js add the following code.

Vue.use(VuetifyConfirmBox, { vuetify }); // Where vuetify is an instance of imported Vuetify vuetify.js file

Usage

Now overall your app you can open the confirmation box with the following code from withing other vue components.

this.$confirm.info("a message", "a title {optional}"); //shows an info box
this.$confirm.warning("a message", "a title {optional}"); //shows a warning box
this.$confirm.success("a message", "a title {optional}"); //shows a success box
this.$confirm.error("a message", "a title {optional}"); //shows an error box

Hint: To all the above methods, there is a third parameter that you can pass which will give you the ability to do more customizations. options are described in below section.

Options

  • buttonFalseColor: Set the color for the negative action button. default: secondary
  • buttonTrueColor: Set the color for the positive action button. default: primary
  • buttonFalseFlat: Give the negative action button a flat style. default: true
  • buttonTrueFlat: Give the positive action button a flat style. default: false
  • buttonFalseText: Set the text for the negative action button.
  • buttonTrueText: Set the text for the positive action button.
  • cancelWithEscape: If true the user can exit with pressing ESC. default: true
  • color: Will set the background-color of the whole box.
  • confirmWithEnter: If true the user can confirm the box by pressing Enter. default: false
  • persistent: This will prevent the user to exit the confirmation box by clicking outside of the box. default: false
  • showIcon: This will toggle the toolbar icon visibility.
  • theme: Set the confirmation box theme to dark or light. default: light
  • width: Set then maximum width for the box. default: 450

FAQs

Package last updated on 24 Nov 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