Improved component hierarchy for actions

document actions are now nested within “document-actions” container to
separate them from other action types (i.e. folder actions); and to be
able applying bulk properties for “document-actions” collection if
needed (i.e. ‘show system actions’)
This commit is contained in:
Denys Vuika
2016-04-27 10:33:17 +01:00
parent 2877457625
commit 9c88fcb830
15 changed files with 214 additions and 42 deletions

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import {Component} from 'angular2/core';
import {DocumentList, DocumentListAction} from 'ng2-alfresco-documentlist/ng2-alfresco-documentlist';
import {DOCUMENT_LIST_DIRECTIVES} from 'ng2-alfresco-documentlist/ng2-alfresco-documentlist';
import {MDL} from 'ng2-alfresco-core/material';
@Component({
@@ -64,14 +64,16 @@ import {MDL} from 'ng2-alfresco-core/material';
[navigate]="navigation"
[downloads]="downloads"
(itemClick)="onItemClick($event)">
<document-action title="System action" handler="system2"></document-action>
<document-action title="Custom action" (execute)="myCustomAction1($event)"></document-action>
<document-actions>
<document-action title="System action" handler="system2"></document-action>
<document-action title="Custom action" (execute)="myCustomAction1($event)"></document-action>
</document-actions>
</alfresco-document-list>
</div>
</div>
</div>
`,
directives: [DocumentList, DocumentListAction, MDL]
directives: [DOCUMENT_LIST_DIRECTIVES, MDL]
})
export class FilesComponent {
thumbnails: boolean = true;