10-28-2018 09:35 PM
Can I recreate the like and comment to folder and file feature in share to adf?
10-29-2018 10:57 AM
yes, please refer to the documentation before. Here are the links:
alfresco-ng2-components/like.component.md at development · Alfresco/alfresco-ng2-components · GitHub
10-29-2018 04:28 PM
Thanks, already implemented that with my file feature, now I'm trying to implement that in my folder feature, wondering on how to add the like and comment icon below the folders
10-30-2018 06:06 AM
you need to add a custom data column in the document list as we have done in this example here:
You can find more details about custom data column here:
10-31-2018 07:23 PM
Just want to ask regarding the "lock document" feature, I followed the one that you gave me, now there's a Lock column in my documentLibrary, but when I tried using it to lock a document, the lock dialog appears for a second and before I can choose to lock it in it goes straight to open the chosen document.
in my documentlist.component.html,
<data-column title="Lock" key="id">
<ng-template let-entry="$implicit">
<button mat-icon-button [adf-node-lock]="entry.row.node.entry" class="adf-lock-button">
<mat-icon *ngIf="entry.row.getValue('isLocked')">lock</mat-icon>
<mat-icon *ngIf="!entry.row.getValue('isLocked')">lock_open</mat-icon>
</button>
</ng-template>
</data-column>
in my documentlist.component.ts,
includeFields = 'isLocked';
and another question about having a like and comment icon below the folders, I have no idea on how to do it, is it to be implemented in the data column itself? this is what I have done so far.
in my documentlist.component.html,
<data-column title="Name" key="name" class="full-width ellipsis-cell">
<mat-icon>like</mat-icon>
<mat-icon>comment</mat-icon>
</data-column>
11-01-2018 05:03 AM
I guess you need to switch from single click to double click your document list otherwise it will perform the same operation for display and lock:
I guess anyway is a better pattern add this operation in the action menu.
Explore our Alfresco products with the links below. Use labels to filter content by product module.