[ADF-621] show drop effect on folders only (#1897)

* show drop effect on folders only

- fix `hasValue` api for data rows (avoid 'false' value to be evaluated as missing value)
- support for evaluating drop support for rows
- document list enables upload zones for folders only

* api improvements as per code review
This commit is contained in:
Denys Vuika
2017-05-26 16:04:41 +01:00
committed by Eugenio Romano
parent d8a46c9765
commit 7b17b10ef1
5 changed files with 11 additions and 3 deletions

View File

@@ -32,7 +32,7 @@
<tr *ngFor="let row of data.getRows(); let idx = index" tabindex="0"
class="alfresco-datatable__row"
[class.alfresco-datatable__row--selected]="selectedRow === row"
[adf-upload]="allowDropFiles" [adf-upload-data]="row">
[adf-upload]="allowDropFiles && rowAllowsDrop(row)" [adf-upload-data]="row">
<!-- Actions (left) -->
<td *ngIf="actions && actionsPosition === 'left'" class="alfresco-datatable__actions-cell">