Skip to content

Commit

Permalink
Fix #3 properly import iron-flex-layout-classes
Browse files Browse the repository at this point in the history
  • Loading branch information
eterna2 committed Feb 4, 2018
1 parent 5e3d8df commit 3563f40
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,15 @@ You can also customize the interior of the `file-drop-zone` via `slot` named `dr
</file-drop-zone>
```

### Events
#### `selected`
Fired when one or more files are selected or dropped into the zone.
Return a [FileList](https://developer.mozilla.org/en-US/docs/Web/API/FileList) of selected files.

#### `error`
Fired when an error is encountered.


## Styling
You can style `file-drop-zone` normally, but there are 3 additional states available for styling.

Expand Down
9 changes: 9 additions & 0 deletions file-drop-zone.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<link rel="import" href="../polymer/polymer-element.html">
<link rel="import" href="../polymer/lib/mixins/gesture-event-listeners.html">
<link rel="import" href="../iron-flex-layout/iron-flex-layout.html">
<link rel="import" href="../iron-flex-layout/iron-flex-layout-classes.html">

<!--
### Quick Start
Expand Down Expand Up @@ -28,6 +29,14 @@ <h3>Drop your file here</h3>
</file-drop-zone>
```
### Events
#### `selected`
Fired when one or more files are selected or dropped into the zone.
Return a [FileList](https://developer.mozilla.org/en-US/docs/Web/API/FileList) of selected files.
#### `error`
Fired when an error is encountered.
### Installation
```
bower install --save PolymerVis/file-drop-zone
Expand Down

0 comments on commit 3563f40

Please sign in to comment.