2017 © Pedro Peláez
 

yii2-extension yii2-dropzone

Yii2 Dropzone widget

image

victorruan/yii2-dropzone

Yii2 Dropzone widget

  • Friday, August 25, 2017
  • by victorruan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Dropzone Extension for Yii 2

This extension provides the Dropzone integration for the Yii2 framework., (*1)

Installation

This extension requires Dropzone, (*2)

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

Either run, (*4)

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

or add, (*5)

"victorruan/yii2-dropzone": "*"

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

General Usage

use victorruan\dropzone\DropZone;

DropZone::widget(
    [
        'name' => 'file', // input name or 'model' and 'attribute'
        'url' => '', // upload url
        'storedFiles' => [], // stores files
        'eventHandlers' => [], // dropzone event handlers
        'sortable' => true, // sortable flag
        'sortableOptions' => [], // sortable options
        'htmlOptions' => [], // container html options
        'options' => [], // dropzone js options
    ]
)

you can also register victorruan\dropzone\UploadAction and victorruan\dropzone\RemoveAction actions in your controller, (*7)

The Versions

25/08 2017

dev-master

9999999-dev

Yii2 Dropzone widget

  Sources   Download

GPL-3.0+

The Requires

 

by Avatar victorruan

yii2 upload dropzone