Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Extends vuetify.js confirm dialog

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

BasilaryGroup/vuetify-confirm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

38 Commits

Repository files navigation

Vuetify.js confirm dialog

This module extends vuetify confirm dialog.

NPM Version

Demo page

See demo here

Setup

Install the package from npm

npm install vuetify-confirm
import VuetifyConfirm from 'vuetify-confirm'
Vue.use(VuetifyConfirm)

Install with options or any of them:

import VuetifyConfirm from 'vuetify-confirm'
Vue.use(VuetifyConfirm, {
 buttonTrueText: 'Accept',
 buttonFalseText: 'Discard',
 color: 'warning',
 icon: 'warning',
 title: 'Warning',
 width: 350,
 property: '$confirm'
})

property: '$confirm' will create property with this name in Vue prototype

Params

  • message: String, required
  • options: Object
    • buttonTrueText: String
    • buttonFalseText: String
    • color: String
    • icon: String
    • title: String
    • width: Number
    • persistent: Boolean

Usage

this.$confirm('Do you really want to exit?').then(res => {
})
let res = await this.$confirm('Do you really want to exit?', { title: 'Warning' })
if (res) {
 ...
}

res will be true or false

You can format your message with arbitrary HTML - make sure you don't include any user-provided content here:

const res = await this.$confirm('Please do not do this.<br>Do you really want to exit?')
console.log(res)

About

Extends vuetify.js confirm dialog

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vue 60.0%
  • JavaScript 26.4%
  • Shell 13.6%

AltStyle によって変換されたページ (->オリジナル) /