#9 new 'folderChange' event

- introduce new ‘folderChange’ event
- deprecated ‘folderClick’ event
- improved automation-id generation for cells
This commit is contained in:
Denys Vuika
2016-05-31 16:05:34 +01:00
parent a0cc7d6587
commit 366d147d53
4 changed files with 48 additions and 29 deletions

View File

@@ -1,9 +1,12 @@
<alfresco-upload-drag-area [showUploadDialog]="true" currentFolderPath="{{absolutePath}}" uploaddirectory="{{relativePath}}"
(onSuccess)="refreshDocumentList($event)">
<alfresco-upload-drag-area
[showUploadDialog]="true"
currentFolderPath="{{absolutePath}}"
uploaddirectory="{{relativePath}}"
(onSuccess)="refreshDocumentList($event)">
<alfresco-document-list
(folderClick)="refreshDirectyory($event)"
currentFolderPath="{{absolutePath}}"
[breadcrumb]="breadcrumb">
[currentFolderPath]="absolutePath"
[breadcrumb]="breadcrumb"
(folderChange)="onFolderChanged($event)">
<content-columns>
<content-column source="$thumbnail"></content-column>
<content-column
@@ -96,6 +99,13 @@
</label>
</div>
<div class="p-10">
<ul>
<li>Relative path: {{relativePath}}</li>
<li>Absolute path: {{absolutePath}}</li>
</ul>
</div>
<h5>Single file upload</h5>
<alfresco-upload-button data-automation-id="single-file-upload" uploaddirectory="{{relativePath}}" currentFolderPath="{{absolutePath}}"
(onSuccess)="refreshDocumentList($event)"></alfresco-upload-button>