2017 © Pedro Peláez
 

yii2-extension yii2-dropzone

Dropzone Js for Yii2 Widget

image

zainiafzan/yii2-dropzone

Dropzone Js for Yii2 Widget

  • Thursday, March 13, 2014
  • by zainiafzan
  • Repository
  • 2 Watchers
  • 4 Stars
  • 168 Installations
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 2 % Grown

The README.md

Dropzone Js Yii2 Widget

Dropzone Js for Yii2 Widget, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist zainiafzan/yii2-dropzone "*"

or add, (*4)

"zainiafzan/yii2-dropzone": "*"

to the require section of your composer.json file., (*5)

Usage

Once the extension is installed, simply use it in your code by :, (*6)

php <?= \zainiafzan\widget\Dropzone::widget([ 'options' => [ 'addRemoveLinks' => true, ], 'clientEvents' => [ 'complete' => "function(file){console.log(file)}", 'removedfile' => "function(file){alert(file.name + ' is removed')}", 'sending' => "function(file, xhr, formData){formData.append('".Yii::$app->request->csrfParam."','".Yii::$app->request->getCsrfToken() ."')}" ] ])?>, (*7)

The Versions

13/03 2014

dev-master

9999999-dev

Dropzone Js for Yii2 Widget

  Sources   Download

MIT

The Requires

 

by Avatar zainiafzan

extension yii2 upload dropzone