yii2-extensions / asset-bootbox
Asset BootBox for Yii Framework.
dev-main
2023-11-19 14:40 UTC
Requires
- php: ^8.1
- npm-asset/bootbox: ^6.0
- oomphinc/composer-installers-extender: ^2.0
- yii2-extensions/asset-bootstrap5: dev-main
- yiisoft/yii2: *
Requires (Dev)
- maglnet/composer-require-checker: ^4.6
- php-forge/support: dev-main
- phpunit/phpunit: ^10.2
- roave/infection-static-analysis-plugin: ^1.32
- yii2-extensions/phpstan: dev-main
This package is auto-updated.
Last update: 2024-12-19 17:00:53 UTC
README
Asset for Bootbox.
Installation
The preferred way to install this extension is through composer.
Either run
composer require --dev --prefer-dist yii2-extensions/asset-bootbox
or add
"yii2-extensions/asset-bootbox": "dev-main"
to the require-dev section of your composer.json
file.
Usage
<?php declare(strict_types=1); use Yii2\Asset\BootboxAsset; use yii\helpers\Html; BootboxAsset::register($this); echo Html::a( 'Delete', '#', [ 'class' => 'btn btn-danger', 'data' => [ 'confirm' => 'Are you sure you want to delete this item?', 'method' => 'post', ], ] );
Quality code
Support versions Yii2
Testing
Check the documentation testing to learn about testing.
Our social networks
License
The MIT License. Please see License File for more information.