xutl/yii2-bootstrap-filestyle-asset

The bootstrap filestyle extension for the Yii framework

Installs: 2 100

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:HTML

Type:yii2-extension

1.0.1 2017-07-30 03:46 UTC

This package is auto-updated.

Last update: 2024-04-11 00:50:36 UTC


README

Latest Stable Version Total Downloads Dependency Status License

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.