Can I recreate the like and comment to folder and file feature in share to adf?
yes, please refer to the documentation before. Here are the links:
alfresco-ng2-components/like.component.md at development · Alfresco/alfresco-ng2-components · GitHub
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
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:
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>
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.
Discussions, help and advice about the Alfresco Development Framework.
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.