mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-02 17:53:30 +00:00
* [ADF-3323] Moved source file parsing to main doc tool * [ADF-3323] Moved source info classes * [ADF-3323] Added doc YAML generator tool * [ADF-3323] Added doc YAML/JSON source paths to gitignore * [ADF-3323] Completed templates and template context code * [ADF-3323] Added source paths and updated type linker * [ADF-3323] Final fixes to templates and type linking * [ADF-3323] Fixed filter for private and protected methods * [ADF-3323] Content services docs after check and rebuild * [ADF-3323] Updated docbuild script in package.json
1.5 KiB
1.5 KiB
Added, Status, Last reviewed
| Added | Status | Last reviewed |
|---|---|---|
| v2.3.0 | Active | 2018-04-10 |
Node Public file Share Directive
Creates and manages public shared links for files.
Basic Usage
<adf-toolbar>
<button mat-icon-button
[baseShareUrl]="http://localhos:8080/myrouteForShareFile/"
[adf-share]="documentList.selection[0]">
<mat-icon>share</mat-icon>
</button>
</adf-toolbar>
<adf-document-list #documentList ...>
...
</adf-document-list>
Class members
Properties
| Name | Type | Default value | Description |
|---|---|---|---|
| baseShareUrl | string |
baseShareUrl to add as prefix to the generated link | |
| node | MinimalNodeEntity |
Node to share. |
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 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:
<adf-viewer
[sharedLinkId]="NEW_GENERATED_SHAREID"
[allowGoBack]="false">
</adf-viewer>
