@ieremeev/confirm

    1.0.2 • Public • Published

    @ieremeev/confirm

    @ieremeev/confirm provides your with confirmation window styled using Semantic UI (like javascript confirm() function)

    Installation

    Run this command:

    npm install @ieremeev/confirm --save
    

    Usage

    Simple example:

    var confirm = require('@ieremeev/confirm');
     
    confirm('Are you absolutely sure?').then(function() {
        // do something
    });

    Full example:

    var confirm = require('@ieremeev/confirm');
     
    confirm({
        message: 'Are you absolutely sure?',
        description: 'You are about to delete one record',
        confirmLabel: 'Yes',
        abortLabel: 'No',
    }).then(function() {
        // do something when 'Yes' has been pressed
    }).fail(function() {
        // do something when 'No' has been pressed
    });

    Keywords

    none

    Install

    npm i @ieremeev/confirm

    DownloadsWeekly Downloads

    6

    Version

    1.0.2

    License

    ISC

    Last publish

    Collaborators

    • ieremeev