0.1.4 • Published 3 years ago

vue-confirm-button-gmlo v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

VueConfirmButton

Introduction

Button to request confirm before execute an action using SweetAlert2

Installation

npm i --save vue-confirm-button-gmlo

Usage

import VueConfirmButton from "vue-confirm-button-gmlo";

Vue.component('VueConfirmButton', VueConfirmButton);
<vue-confirm-button dialog-title="Do you confirm delete this item?">Delete</vue-confirm-button>

Props

PropsTypeRequiredDefault
dialog-titleStringyes-
dialog-textStringno-
confirm-button-textStringno"Yes"
cancel-button-textStringno"Cancel"

You can inherit attributes directly to the button, example:

<!-- Use bootstrap classes on button and disabled-->
<vue-confirm-button class="btn btn-danger" disabled dialog-title="Do you confirm delete this item?">Delete</vue-confirm-button>

Events

EventDescription
confirmedWhen the user to click on confirm button
canceledWhen the user to click on cancel button or exit from the dialog

License

MIT

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago