/yii2-bootstrap-confirmation

Bootstrap plugin for on-place confirm boxes using Popover for Yii2

Primary LanguagePHPMIT LicenseMIT

Yii2 Boostrtap Confirmation

Based on BootstrapConfirmation.

What is Bootstrap Confirmation?

Bootstrap Confirmation - is Bootstrap plugin for on-place confirm boxes using Popover.

sshot-1

Installation

Composer

The preferred way to install this extension is through Composer.

Either run

php composer.phar require uran1980/yii2-bootstrap-confirmation "dev-master"

or add

"uran1980/yii2-bootstrap-confirmation": "dev-master"

to the require section of your composer.json

Usage

To use this component add dependency to you project asset bundle. For example in ...\frontend\assets\AppAsset.php file add to dependency:

<?php

namespace frontend\assets;

class AppAsset extends \yii\web\AssetBundle
{
    ...
    public $depends = [
        ...
        'uran1980\yii\bootstrapConfirmation\BootstrapConfirmationAsset',
    ];
}

That's it. In the View add button like this:

<button class="btn btn-default" data-toggle="confirmation">Confirmation</button>

For more info see Bootstrap Confirmation main project page.

Author

Ivan Yakovlev, e-mail: uran1980@gmail.com