[ADF-2596] Fixed inputs with incorrect names (#3166)

* [ADF-2596] Updated prop script to handle names from input decorators

* [ADF-2596] Fixed inputs with accessors

* [ADF-2596] Fixed remaining inputs with wrong names

* [ADF-2596] Updated prop script to handle names from input decorators

* [ADF-2596] Fixed inputs with accessors

* [ADF-2596] Fixed remaining inputs with wrong names
This commit is contained in:
Andy Stark
2018-04-10 17:19:15 +01:00
committed by Eugenio Romano
parent a32b1b7359
commit 2a5fe7ad28
25 changed files with 386 additions and 222 deletions

View File

@@ -1,28 +1,15 @@
---
Added: v2.3.0
Status: Active
Last reviewed: 2018-04-10
---
# Node Public file Share Directive
Create and manage public shared links for files
Creates and manages public shared links for files.
![adf-share](../docassets/images/share-directive.png)
This dialog will generate a link that will be formed as "baseShareUrl + sharedId".
For example if you set the input parameter [baseShareUrl]="http://localhos:8080/myrouteForShareFile/",
the directive will ask to the Content service to generate a sharedId for the file. This will end up with a url link like :
http://localhos:8080/myrouteForShareFile/NEW_GENERATED_SHAREID
After you will need to implement in your app a logic that throught the router get the NEW_GENERATED_SHAREID and pass it to the ***adf-viewer***
```html
<adf-viewer
[sharedLinkId]="NEW_GENERATED_SHAREID"
[allowGoBack]="false">
</adf-viewer>
```
## Basic Usage
```html
@@ -47,3 +34,28 @@ After you will need to implement in your app a logic that throught the router ge
| baseShareUrl | `string` | | baseShareUrl to add as prefix to the generated link |
## Details
This dialog will generate a link with the form "baseShareUrl + sharedId".
For example, if you set the input parameter as follows:
```
[baseShareUrl]="http://localhost:8080/myrouteForShareFile/"
```
...then the directive will ask the [Content service](../core/content.service.md) to generate
a `sharedId` for the file. This will create a URL like the following:
```
http://localhost:8080/myrouteForShareFile/NEW_GENERATED_SHAREID
```
To use this,ou will need to implement some code that gets the `NEW_GENERATED_SHAREID` with the router
and passes it to a [Viewer component](../core/viewer.component.md):
```html
<adf-viewer
[sharedLinkId]="NEW_GENERATED_SHAREID"
[allowGoBack]="false">
</adf-viewer>
```