Class: Dropzone

Mobizen.Apps.Dropzone

new Mobizen.Apps.Dropzone(apps)

Name Type Description
apps Mobizen.Apps

parent object

Members

$droparea jQueryObject

$dropzone jQueryObject

$rswp jQueryObject

Link to 'rswp' property of Mobizen#$

activateArea boolean

activateZone boolean

hideTimer number

Type Definitions

Methods

accept(file){boolean}

Name Type Description
file File
Returns:
Type Description
boolean

dragover(e)

Name Type Description
e DOMEvent

event

dropfile(e){boolean}

Name Type Description
e DOMEvent

event

Returns:
Type Description
boolean

hidearea(e)

Name Type Description
e DOMEvent optional

event

hidezone(e){undefind|boolean}

Name Type Description
e DOMEvent optional

event

Returns:
Type Description
undefind | boolean 응?

readDir(entries, path, files)

Recursive directory read

Name Type Description
entries array
path string
files array.<File>

readFile(entrie, entries, onerror)

Name Type Description
entrie object
entries array
onerror function

showarea(e){boolean}

Name Type Description
e DOMEvent

event

Returns:
Type Description
boolean

showzone(e){boolean}

Name Type Description
e DOMEvent

event

Returns:
Type Description
boolean

inner errorHandler(e)

Name Type Description
e Error

error

Throws:
Will throw an error form File API.

inner getAllEntries(directoryReader, callback)

This is needed to get all directory entries as one call of readEntries may not return all items. Works a bit like stream reader.

Name Type Description
directoryReader DirectoryReader
callback function

inner toArray(list, result)

Name Type Description
list array
result array
comments powered by Disqus