xutl / yii2-bootstrap-filestyle-asset
The bootstrap filestyle extension for the Yii framework
Installs: 2 102
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:HTML
Type:yii2-extension
Requires
- php: >=5.4.0
- yiisoft/yii2: ~2.0.6
This package is auto-updated.
Last update: 2024-10-11 01:49:12 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.