xutl / yii2-bootstrap-filestyle-asset
The bootstrap filestyle extension for the Yii framework
Package info
github.com/xutl/yii2-bootstrap-filestyle-asset
Language:HTML
Type:yii2-extension
pkg:composer/xutl/yii2-bootstrap-filestyle-asset
1.0.1
2017-07-30 03:46 UTC
Requires
- php: >=5.4.0
- yiisoft/yii2: ~2.0.6
This package is auto-updated.
Last update: 2026-03-11 04:50:09 UTC
README
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist xutl/yii2-bootstrap-filestyle-asset
or add
"xutl/yii2-bootstrap-filestyle-asset": "~1.0.0"
to the require section of your composer.json file.
Usage
use xutl\bootstrap\filestyle\FilestyleAsset; FilestyleAsset::register($this); echo $form->field($model, 'file')->fileInput(['class'=>'filestyle','data'=>['buttonText'=>Yii::t('app','Choose file')]]);
License
This is released under the MIT License. See the bundled LICENSE.md for details.