Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Step 20.14: Add ngf-drop to the view
- Loading branch information
Showing
1 changed file
with
15 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
<div layout="column"> | ||
<div> | ||
<div>Click here to select image</div> | ||
<div> | ||
<strong>OR</strong> | ||
</div> | ||
<div>You can also drop image to here</div> | ||
<div ngf-drop | ||
ngf-select | ||
ngf-change="partyUpload.addImages($files)" | ||
ngf-drag-over-class="{accept:'dragover', reject:'dragover-err', delay:100}" | ||
class="drop-box" | ||
ngf-multiple="false" | ||
ngf-allow-dir="false" | ||
ngf-accept="'image/*'" | ||
ngf-drop-available="true" | ||
ng-hide="partyUpload.cropImgSrc"> | ||
<div>Click here to select image</div> | ||
<div> | ||
<strong>OR</strong> | ||
</div> | ||
<div>You can also drop image to here</div> | ||
</div> | ||
</div> |