mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user