-
Notifications
You must be signed in to change notification settings - Fork 344
Open
Description
| handleChange: Function, |
I am working with Box Api using the scaffolding and building the appliction from different elements.
My suggestion would be to add an event that'd allow developers to control the selection of contentUploader via props passed down or at least be able to hook onto an event that's exposed at the top level.
I went through the docs and was really surprised not to see a simple code to work;
this.currentContentExplorer = new Box.ContentExplorer();
this.currentContentExplorer.on('chooseFiles', (files: Entry[]) => {
if(customValidation(files)) this.attachmentsService.upload(files);
});OR
this.currentContentExplorer = new Box.ContentExplorer();
this.contentExplorerProps = {
contentUploaderProps: {
onSelection: (selectedFiles: Entries[]) => boolean; // tells if the files selected are valid to be displayed in the list
}
}
this.currentContentExplorer.show(
this.getCurrentFolderId(),
this.ssoService.refreshedToken),
this.contentExplorerProps
);Metadata
Metadata
Assignees
Labels
No labels