mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
update viewer readme
This commit is contained in:
@@ -13,7 +13,8 @@
|
|||||||
+ [DataTable DOM Events](#datatable-dom-events)
|
+ [DataTable DOM Events](#datatable-dom-events)
|
||||||
+ [Empty content template](#empty-content-template)
|
+ [Empty content template](#empty-content-template)
|
||||||
+ [Loading content template](#loading-content-template)
|
+ [Loading content template](#loading-content-template)
|
||||||
- [Column Templates](#column-templates)
|
+ [Column Templates](#column-templates)
|
||||||
|
+ [Events](#events)
|
||||||
- [rowClick event](#rowclick-event)
|
- [rowClick event](#rowclick-event)
|
||||||
- [rowDblClick event](#rowdblclick-event)
|
- [rowDblClick event](#rowdblclick-event)
|
||||||
- [showRowContextMenu event](#showrowcontextmenu-event)
|
- [showRowContextMenu event](#showrowcontextmenu-event)
|
||||||
@@ -23,7 +24,7 @@
|
|||||||
* [Generate schema](#generate-schema)
|
* [Generate schema](#generate-schema)
|
||||||
- [Pagination Component](#pagination-component)
|
- [Pagination Component](#pagination-component)
|
||||||
+ [Properties](#properties)
|
+ [Properties](#properties)
|
||||||
+ [Events](#events)
|
+ [Events](#events-1)
|
||||||
* [Build from sources](#build-from-sources)
|
* [Build from sources](#build-from-sources)
|
||||||
* [NPM scripts](#npm-scripts)
|
* [NPM scripts](#npm-scripts)
|
||||||
* [Demo](#demo)
|
* [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
|
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:
|
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
|
#### rowClick event
|
||||||
|
|
||||||
_This event is emitted when user clicks the row._
|
_This event is emitted when user clicks the row._
|
||||||
|
@@ -10,6 +10,7 @@
|
|||||||
- [Basic usage](#basic-usage)
|
- [Basic usage](#basic-usage)
|
||||||
- [Properties](#properties)
|
- [Properties](#properties)
|
||||||
- [Supported file formats](#supported-file-formats)
|
- [Supported file formats](#supported-file-formats)
|
||||||
|
- [PDF Conversion](#pdf-conversion)
|
||||||
- [Custom extension handler](#custom-extension-handler)
|
- [Custom extension handler](#custom-extension-handler)
|
||||||
- [Build from sources](#build-from-sources)
|
- [Build from sources](#build-from-sources)
|
||||||
- [NPM scripts](#npm-scripts)
|
- [NPM scripts](#npm-scripts)
|
||||||
@@ -76,6 +77,13 @@ Using with file url:
|
|||||||
| Images | png, jpg, jpeg, gif, bmp |
|
| Images | png, jpg, jpeg, gif, bmp |
|
||||||
| Text | pdf, txt |
|
| Text | pdf, txt |
|
||||||
|
|
||||||
|
## PDF Conversion
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
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
|
## 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.
|
If you want handle other file formats that are not yet supported by the ng2-alfresco-viewer you can define your own custom handler.
|
||||||
|
BIN
ng2-components/ng2-alfresco-viewer/docs/assets/renditions.png
Normal file
BIN
ng2-components/ng2-alfresco-viewer/docs/assets/renditions.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 55 KiB |
Reference in New Issue
Block a user