Skip to content

Commit

Permalink
readme updated 8.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
vugar committed Nov 11, 2019
1 parent 2bc603f commit d48290a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions projects/file-picker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Tested on Angular 6/7/8. Supports Server Side Rendering.
* [Bonus](#bonus)

## Quick-links
[Example Application](https://ngx-awesome-uploader.stackblitz.io/)
[Example Application](https://ngx-awesome-uploader.stackblitz.io/) or
[StackBlitzDemo](https://stackblitz.com/edit/ngx-awesome-uploader?file=src%2Fapp%2Fsimple-demo%2Fsimple-demo.component.ts)
## Install

Expand Down Expand Up @@ -246,13 +246,14 @@ II) To use custom file preview template, pass your custom template as below:
>
</ngx-file-picker>

<ng-template #itemTemplate let-fileItem="fileItem">
<ng-template #itemTemplate let-fileItem="fileItem" let-uploadProgress="uploadProgress">
<p>{{fileItem.file.size}}</p>
<p>{{fileItem.fileName}}</p>
<p *ngIf="uploadProgress < 100">{{uploadProgress}}%</p>
<button (click)="uploader.removeFile(fileItem)">Remove</button>
</ng-template>
```
In custom template <b>fileItem</b> is exposed (which implements [FilePrevieModel](https://github.com/vugar005/ngx-awesome-uploader/blob/master/projects/file-picker/src/lib/file-preview.model.ts) interface).
In custom template <b>uploadProgress</b> and <b>fileItem</b> (which implements [FilePrevieModel](https://github.com/vugar005/ngx-awesome-uploader/blob/master/projects/file-picker/src/lib/file-preview.model.ts) interface) are exposed .
## Multi Language
You can add multi language support for library by providing ***captions*** object (which implements [UploaderCaptions](https://github.com/vugar005/ngx-awesome-uploader/blob/master/projects/file-picker/src/lib/uploader-captions.ts) interface).

Expand All @@ -265,4 +266,4 @@ You can also check out library [router animations ](https://www.npmjs.com/packag
You can fork project from github. Pull requests are kindly accepted.
1. Building library: ng build file-picker
2. Running tests: ng test file-picker
3. Run demo: ng serve
3. Run demo: ng serve
2 changes: 1 addition & 1 deletion projects/file-picker/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-awesome-uploader",
"version": "8.0.3",
"version": "8.1.1",
"description": "Angular Library for uploading files with Real-Time Progress bar, File Preview, Drag && Drop and Custom Template with Multi Language support",
"peerDependencies": {
"@angular/common": "^6.0.0 || ^7.0.0 || ^8.0.0",
Expand Down

0 comments on commit d48290a

Please sign in to comment.