uran1980 / yii2-bootstrap-confirmation
Bootstrap plugin for on-place confirm boxes using Popover for Yii2
Installs: 26 534
Dependents: 1
Suggesters: 0
Security: 0
Stars: 6
Watchers: 3
Forks: 4
Open Issues: 1
Type:yii2-extension
Requires
- bower-asset/bootstrap-confirmation2: *
- yiisoft/yii2: ~2
This package is auto-updated.
Last update: 2024-10-13 04:41:39 UTC
README
Based on BootstrapConfirmation.
What is Bootstrap Confirmation?
Bootstrap Confirmation - is Bootstrap plugin for on-place confirm boxes using Popover.
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