Creates and manages public shared links for files.
<adf-toolbar>
<button mat-icon-button
#shared="adfShare"
[disabled]="!shared.isFile"
[baseShareUrl]="http://localhost:8080/myrouteForShareFile/"
[adf-share]="documentList.selection[0]">
<mat-icon>share</mat-icon>
</button>
</adf-toolbar>
<adf-document-list #documentList ...>
...
</adf-document-list>
| Name | Type | Default value | Description |
|---|---|---|---|
| baseShareUrl | string | Prefix to add to the generated link. | |
| node | NodeEntry | Node to share. |
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/"
...or through app.config.json:
{ ... "baseShareUrl": 'http://external/url', ... }
...then the directive will ask the Content service 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, you will need to implement some code that gets the NEW_GENERATED_SHAREID with the router
and passes it to a Viewer component:
<adf-viewer
[sharedLinkId]="NEW_GENERATED_SHAREID"
[allowGoBack]="false">
</adf-viewer>
Date and time widget for setting the expiration date can be configured to show only the date picker or both date and time piker.
By default, the widget will show both date and time picker if sharedLinkDateTimePickerType is not present in the app.config.json.
Possible values are 'date' or 'datetime'
{
...
"sharedLinkDateTimePickerType": 'date'
...
}
© 2023 Alfresco Software, Inc. All Rights Reserved.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.