mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Dropzone update (#8950)
* Update dropzone.d.ts to 4.3.0 * Update dropzone-commonjs-tests.ts * Update dropzone-tests.ts * Update dropzone.d.ts * Update dropzone.d.ts * Update dropzone-tests.ts * Update dropzone-commonjs-tests.ts * Update dropzone-tests.ts * Update dropzone.d.ts * Update dropzone.d.ts
This commit is contained in:
committed by
Masahiro Wakame
parent
19e22df5dd
commit
d9c630f39b
@@ -4,6 +4,9 @@ import Dropzone = require("dropzone");
|
||||
|
||||
const dropzoneFromString = new Dropzone(".test");
|
||||
const dropzoneFromElement = new Dropzone(document.getElementById("test"));
|
||||
const dropzoneRenameFunction = function(name: string){
|
||||
return name;
|
||||
};
|
||||
|
||||
const dropzoneWithOptions = new Dropzone(".test", {
|
||||
url: "/some/url",
|
||||
@@ -25,10 +28,12 @@ const dropzoneWithOptions = new Dropzone(".test", {
|
||||
clickable: true,
|
||||
ignoreHiddenFiles: true,
|
||||
acceptedFiles: "image/*",
|
||||
renameFilename: dropzoneRenameFunction,
|
||||
autoProcessQueue: true,
|
||||
autoQueue: true,
|
||||
addRemoveLinks: true,
|
||||
previewsContainer: "<div></div>",
|
||||
hiddenInputContainer: document.createElement("input"),
|
||||
capture: "camera",
|
||||
|
||||
dictDefaultMessage: "",
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
|
||||
const dropzoneFromString = new Dropzone(".test");
|
||||
const dropzoneFromElement = new Dropzone(document.getElementById("test"));
|
||||
const dropzoneRenameFunction = function (name:string):string {
|
||||
return name + 'new';
|
||||
};
|
||||
|
||||
const dropzoneWithOptions = new Dropzone(".test", {
|
||||
url: "/some/url",
|
||||
@@ -26,10 +29,12 @@ const dropzoneWithOptions = new Dropzone(".test", {
|
||||
clickable: true,
|
||||
ignoreHiddenFiles: true,
|
||||
acceptedFiles: "image/*",
|
||||
renameFilename: dropzoneRenameFunction,
|
||||
autoProcessQueue: true,
|
||||
autoQueue: true,
|
||||
addRemoveLinks: true,
|
||||
previewsContainer: "<div></div>",
|
||||
hiddenInputContainer: document.createElement("input"),
|
||||
capture: "camera",
|
||||
|
||||
dictDefaultMessage: "",
|
||||
|
||||
Vendored
+4
-2
@@ -1,6 +1,6 @@
|
||||
// Type definitions for Dropzone 4.0.1
|
||||
// Type definitions for Dropzone 4.3.0
|
||||
// Project: http://www.dropzonejs.com/
|
||||
// Definitions by: Natan Vivo <https://github.com/nvivo>, Andy Hawkins <https://github.com/a904guy/,http://a904guy.com/,http://www.bmbsqd.com>, Vasya Aksyonov <https://github.com/outring>
|
||||
// Definitions by: Natan Vivo <https://github.com/nvivo>, Andy Hawkins <https://github.com/a904guy/,http://a904guy.com/,http://www.bmbsqd.com>, Vasya Aksyonov <https://github.com/outring>, Simon Huber <https://github.com/renuo>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference path="../jquery/jquery.d.ts"/>
|
||||
@@ -45,10 +45,12 @@ interface DropzoneOptions {
|
||||
clickable?: boolean|string|HTMLElement|(string|HTMLElement)[];
|
||||
ignoreHiddenFiles?: boolean;
|
||||
acceptedFiles?: string;
|
||||
renameFilename?(name:string): string;
|
||||
autoProcessQueue?: boolean;
|
||||
autoQueue?: boolean;
|
||||
addRemoveLinks?: boolean;
|
||||
previewsContainer?: boolean|string|HTMLElement;
|
||||
hiddenInputContainer?: HTMLElement;
|
||||
capture?: string;
|
||||
|
||||
dictDefaultMessage?: string;
|
||||
|
||||
Reference in New Issue
Block a user