File

src/ui/file-upload/services/smart-file-upload-registry.service.ts

Index

Methods

Constructor

constructor()

Methods

getFileUpload
getFileUpload(instanceName: string)

Gets a file upload component by instance name. If the file upload component is not registered, it will return undefined.

Parameters :
Name Type Optional Description
instanceName string No
  • The instance name of the file upload component.
Returns : any

The file upload component or undefined if not found.

getFileUploadAsObservable
getFileUploadAsObservable(instanceName: string)

Gets a file upload component as an observable that emits the file upload component when it is registered. If the file upload component is not registered, it will emit undefined.

Parameters :
Name Type Optional Description
instanceName string No
  • The instance name of the file upload component.
Returns : any

The file upload component as an observable.

registerFileUpload
registerFileUpload(instanceName: string, fileUpload: SmartFileUploadComponent)

Registers a file upload component.

Parameters :
Name Type Optional Description
instanceName string No
  • The instance name of the file upload component to register.
fileUpload SmartFileUploadComponent No
  • The file upload component to register.
Returns : void
unregisterAll
unregisterAll()

Unregisters all file upload components from this registry.

Returns : void
unregisterFileUpload
unregisterFileUpload(instanceName: string)

Unregisters a file upload component.

Parameters :
Name Type Optional Description
instanceName string No
  • The instance name of the file upload component to unregister.
Returns : void

results matching ""

    No results matching ""