uran1980/yii2-bootstrap-confirmation

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

0.0.3 2015-03-07 00:00 UTC

This package is auto-updated.

Last update: 2024-12-13 04:59:22 UTC


README

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