Hi everyone,
I need make custom action toolbar button, which give me nodeIDs of selected files.
The case is about calling api with nodeIDs array infomartion.
in my custom view adf component I have:
<adf-toolbar title="Search folders by query"> <button mat-icon-button title="Run action" (click)="myCustomAction2($event)"> <mat-icon>replay</mat-icon> </button>
and in .ts file
myCustomAction2(event){ console.log(event); }
"event" contains many infomartion but i did not see my selected nodeRefs.
Can anyone help me please ? )
Solved! Go to Solution.
for (let row of this.data.getRows()) { if (row.isSelected == true) { console.log(row.getValue("nodeRef")); }
for (let row of this.data.getRows()) { if (row.isSelected == true) { console.log(row.getValue("nodeRef")); }
Hi @wity
Great that you found out how to do it - and thanks for showing us how! Really helpful to other users.
Cheers,
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.