1.0.1 • Published 1 year ago

@aponahmed/confirm v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Custom confirm window

Custom Confirm Box for Web, This is a small package to receive user's confirmation before execute any action. Builtin two buttons are shown, One is 'Yes' and other is 'No'.

Demo

You can see the demo on codepen

Installation

npm i @aponahmed/confirm

Uses

    import ConfirmBox from '@aponahmed/confirm';

    new ConfirmBox({
        title: "Confirm Title",
        message: "Some awesome message about confirmation",
        yes:"Yes",  //Label of Yes button defaults is "Yes"
        no:"No",    //Label of No button defaults is "No"
        yesCallback:()=>{
            //Your confirmation action will be here
            alert("You have confirmed");
        },
        noCallback:()=>{
             alert("You Not confirmed");
        }
    });
1.0.1

1 year ago

1.0.0

1 year ago

0.0.3

1 year ago

0.0.1

1 year ago