Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
VadimDez authored Apr 6, 2018
1 parent f809e57 commit 0dd6d2a
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,10 @@ Zoom pdf
```

#### [fit-to-page]
_boolean_

| Property | Type | Required |
| --- | ---- | --- |
| [fit-to-page] | *boolean* | *Optional* |

Works in combination with `[original-size]="true"`. You can show your document in original size, and make sure that it's not bigger then container block.

Expand All @@ -239,7 +242,10 @@ Works in combination with `[original-size]="true"`. You can show your document i
```

#### [show-all]
_boolean_

| Property | Type | Required |
| --- | ---- | --- |
| [show-all] | *boolean* | *Optional* |

Show single or all pages altogether

Expand All @@ -248,7 +254,10 @@ Show single or all pages altogether
```

#### [autoresize]
_boolean_

| Property | Type | Required |
| --- | ---- | --- |
| [autoresize] | *boolean* | *Optional* |

Turn on or off auto resize.

Expand All @@ -260,6 +269,10 @@ Turn on or off auto resize.

#### (after-load-complete)

| Property | Type | Required |
| --- | ---- | --- |
| (after-load-complete) | *callback* | *Optional* |

Get PDF information with callback

First define callback function "callBackFn" in your controller,
Expand All @@ -276,6 +289,10 @@ And then use it in your template:

#### (page-rendered)

| Property | Type | Required |
| --- | ---- | --- |
| (page-rendered) | *callback* | *Optional* |

Get event when a page is rendered. Called for every page rendered.

Define callback in your component:
Expand All @@ -294,6 +311,10 @@ And then bind it to `<pdf-viewer>`:

#### (error)

| Property | Type | Required |
| --- | ---- | --- |
| (error) | *callback* | *Optional* |

Error handling callback

Define callback in your component's class
Expand All @@ -312,6 +333,10 @@ Then add it to `pdf-component` in component's template

#### (on-progress)

| Property | Type | Required |
| --- | ---- | --- |
| (on-progress) | *callback* | *Optional* |

Loading progress callback - provides progress information `total` and `loaded` bytes. Is called several times during pdf loading phase.

Define callback in your component's class
Expand Down

0 comments on commit 0dd6d2a

Please sign in to comment.