Box UI Elements
Hey there,
I'm working on Angular 5 app with UI Box Elements, and i wonder how i can put this variable isFolderUploadEnabled: false to true in the file :
box-ui-elements/src/components/ContentUploader/ContentUploader.js
Thanks for help.
-
Hi , you can add this option in your show call.
Example
uploader.show(folderId, accessToken, { container: '.container', isFolderUploadEnabled: true });
Also, ensure you're on the latest version as this is a relatively new feature.
https://developer.box.com/docs/box-content-uploader
Hope this helps!
Jeremy
-
Can you share how you imported Box UI Elements into you Angular project?
I'm using Angular 7 and tried to add to the build > script but when it tries to transpile I get this error: "preview.js:22 Uncaught Error: Missing or malformed preview.js library"
how do I make my angular project recognize the box ui element .js library?
-
Box is the global variable when the box-ui-element script loaded, you can declare one variable as
declare var Box:any; in component file
Then you can invoke the required classes and methods.Refer this repository.
https://github.com/bojjakaseenadhreddy/integrate-box-ui-elments-in-anugular
Please sign in to leave a comment.
Comments
4 comments