## DropZone API

### Directive Value

- `value` (Function | object | false, optional)
  Function to call with the dropped files (identical to description of 'handler' prop of the Object form); Object to also validate the dropped files the way QFile does; false or null (any value that is not a handler, in fact) disables the directive, so the element stops accepting drops until a handler is supplied again
  Function signature: `(files: any[], evt: Event) => void`
  Examples:
    - `v-drop-zone="myHandler"`
    - `v-drop-zone="isEnabled ? myHandler : false"`
    - `v-drop-zone="{ handler: myHandler, accept: 'image/*', maxFileSize: 1048576, onRejected: myRejectedHandler }"`
  Params:
    - `files` (any[], required)
      The dropped File objects; only the first one unless the 'multiple' modifier is set; empty when the drag carried no files
      Examples:
        - `[ File, File ]`
    - `evt` (Event, required)
      The drop Event; its dataTransfer holds the other payloads of the drag (text, links)
  Object shape:
    - `handler` (Function, required)
      The handler function to be called with the dropped files
      Function signature: `(files: any[], evt: Event) => void`
      Params:
        - `files` (any[], required)
          The dropped File objects that passed the validation; only the first one unless 'multiple' is set; empty when nothing passed or the drag carried no files
          Examples:
            - `[ File, File ]`
        - `evt` (Event, required)
          The drop Event; its dataTransfer holds the other payloads of the drag (text, links)
    - `multiple` (boolean, optional)
      Hand over every dropped file instead of the first one only; takes precedence over the 'multiple' modifier
    - `accept` (string, optional)
      Comma separated list of unique file type specifiers, the same format as the 'accept' attribute of a native file input
      Examples:
        - `'.jpg, .pdf, image/*'`
        - `'image/jpeg, .pdf'`
    - `maxFileSize` (number | string, optional)
      Maximum size of individual file in bytes
      Examples: `1024`, `'1048576'`
    - `maxTotalSize` (number | string, optional)
      Maximum size of all files combined in bytes
      Examples: `10485760`
    - `maxFiles` (number | string, optional)
      Maximum number of files per drop
      Examples: `5`
    - `filter` (Function, optional)
      Custom filter for the dropped files; only the files you return are handed over
      Function signature: `(files: any[]) => any[]`
      Examples: `files => files.filter(file => file.size === 1024)`
      Params:
        - `files` (any[], required)
          Candidate files
      Returns: `any[]`
        The files that pass
    - `activeClass` (string, optional), default `'q-drop-zone--over'`
      CSS class to apply to the element while a drag hovers it, instead of the default 'q-drop-zone--over'
      Examples: `'my-zone--active'`
    - `onRejected` (Function, optional)
      Called after a drop when some files do not pass the validation (accept, maxFileSize, maxTotalSize, maxFiles, filter)
      Function signature: `(rejectedEntries: any[]) => void`
      Params:
        - `rejectedEntries` (any[], required)
          Array of { failedPropValidation: string, file: File } Objects for files that do not pass the validation

### Directive Modifiers

- `multiple` (boolean, optional)
  Hand over every dropped file instead of the first one only
  Examples: `v-drop-zone.multiple`

