diecoding/yii2-dropify

Override your input files with style — Demo here : http://jeremyfagis.github.io/dropify

Installs: 59

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 1

Type:yii2-widget

v0.2.1 2020-03-10 11:54 UTC

This package is auto-updated.

Last update: 2020-07-10 12:42:32 UTC


README

Override your input files with style — Demo here : http://jeremyfagis.github.io/dropify

Latest Version Software License Quality Sdropify Total Downloads

Installation

The preferred way to install this extension is through composer.

Either run

composer require --prefer-dist diecoding/yii2-dropify "*"

or add

"diecoding/yii2-dropify": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, use it in your code

<?php echo \diecoding\dropify\Dropify::widget([
    'options' => [ // options for input widget

    ]
    'pluginOptions' => [ // options for dropify, as output  ```$(#options['id']).dropify(pluginOptions);```
        
    ]
]); ?>

or

<?php echo $form->field($model, 'image')->widget(\diecoding\dropify\Dropify::className(), [
    'options' => [ // options for input widget

    ]
    'pluginOptions' => [ // options for dropify, as output  ```$(#options['id']).dropify(pluginOptions);```
        
    ]
]) ?>