update viewer readme

This commit is contained in:
Eugenio Romano
2017-06-29 01:18:44 +01:00
parent 56f59ffd58
commit 829eac2dcf
3 changed files with 14 additions and 3 deletions

View File

@@ -13,7 +13,8 @@
+ [DataTable DOM Events](#datatable-dom-events)
+ [Empty content template](#empty-content-template)
+ [Loading content template](#loading-content-template)
- [Column Templates](#column-templates)
+ [Column Templates](#column-templates)
+ [Events](#events)
- [rowClick event](#rowclick-event)
- [rowDblClick event](#rowdblclick-event)
- [showRowContextMenu event](#showrowcontextmenu-event)
@@ -23,7 +24,7 @@
* [Generate schema](#generate-schema)
- [Pagination Component](#pagination-component)
+ [Properties](#properties)
+ [Events](#events)
+ [Events](#events-1)
* [Build from sources](#build-from-sources)
* [NPM scripts](#npm-scripts)
* [Demo](#demo)
@@ -274,7 +275,7 @@ You can add a template that will be showed during the loading of your data:
Note: the `<loading-content-template>` and `<no-content-template>` can be used together
#### Column Templates
### Column Templates
It is possible assigning a custom column template like the following:
@@ -320,6 +321,8 @@ In the second case `entry` variable is holding a reference to the following data
}
```
### Events
#### rowClick event
_This event is emitted when user clicks the row._

View File

@@ -10,6 +10,7 @@
- [Basic usage](#basic-usage)
- [Properties](#properties)
- [Supported file formats](#supported-file-formats)
- [PDF Conversion](#pdf-conversion)
- [Custom extension handler](#custom-extension-handler)
- [Build from sources](#build-from-sources)
- [NPM scripts](#npm-scripts)
@@ -76,6 +77,13 @@ Using with file url:
| Images | png, jpg, jpeg, gif, bmp |
| Text | pdf, txt |
## PDF Conversion
![Rendition](docs/assets/renditions.png)
Note for unsupported extension the viewer will offer the possibility to convert it in PDF is that kind of extension is supported by the [content service renditions service](https://community.alfresco.com/docs/DOC-5879-rendition-service)
## Custom extension handler
If you want handle other file formats that are not yet supported by the ng2-alfresco-viewer you can define your own custom handler.

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB