alfresco-ng2-components/docs/content-services/content-node-dialog.service.md

6.5 KiB

Title, Added, Status, Last reviewed
Title Added Status Last reviewed
Content Node Dialog service v2.1.0 Active 2018-11-14

Content Node Dialog service

Displays and manages dialogs for selecting content to open, copy or upload.

Class members

Methods

Details

The openXXX methods return an Observable that you can subscribe to in order to get the information from the result:

import { ContentNodeDialogService } from '@adf/content-services'


constructor(private contentDialogService: ContentNodeDialogService){}

yourFunctionOnCopyOrMove(){
        this.contentDialogService
            .openCopyMoveDialog(actionName, targetNode, neededPermissionForAction)
            .subscribe((selections: MinimalNodeEntryEntity[]) => {
                // place your action here on operation success!
            });
}

The openXXXByFolderId methods let you set the initial folder location of the browser using a folder ID string. This can be obtained from the id property of a MinimalNodeEntryEntity object (returned from a previous dialog operation, say) or be set to one of the well-known names "-my-" , "-shared-" or "-root-".

See Also